aboutsummaryrefslogtreecommitdiff
path: root/src/analyze.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2017-04-25 14:20:15 -0400
committerAndrew Kelley <superjoe30@gmail.com>2017-04-25 14:20:15 -0400
commitefa771af754281cd76a77ef22af107eb0a9aaf9a (patch)
treecbc8a86a19b928f1b11755930619fc7de8a1ada1 /src/analyze.cpp
parente0050af293146a38e2122413196e66f73d90f2e0 (diff)
downloadzig-efa771af754281cd76a77ef22af107eb0a9aaf9a.tar.gz
zig-efa771af754281cd76a77ef22af107eb0a9aaf9a.zip
compile time improvement - add __zig_panic_slice fn
move some boilerplate code having to do with panicking to a function. Here's the timing difference. It's not much: Before: full test: 1m36.511s debug test: 20.862s hello.zig Name Start End Duration Percent Initialize 0.0000 0.0000 0.0000 0.0001 Semantic Analysis 0.0000 0.0421 0.0420 0.2109 Code Generation 0.0421 0.0620 0.0200 0.1003 LLVM Emit Object 0.0620 0.1852 0.1231 0.6180 Build Dependencies 0.1852 0.1974 0.0122 0.0615 LLVM Link 0.1974 0.1993 0.0018 0.0093 Generate .h 0.1993 0.1993 0.0000 0.0000 Total 0.0000 0.1993 0.1993 1.0000 After: full test: 1m33.588s debug test: 20.303s hello.zig Name Start End Duration Percent Initialize 0.0000 0.0000 0.0000 0.0002 Semantic Analysis 0.0000 0.0425 0.0425 0.2202 Code Generation 0.0425 0.0675 0.0250 0.1293 LLVM Emit Object 0.0675 0.1789 0.1114 0.5773 Build Dependencies 0.1789 0.1913 0.0124 0.0640 LLVM Link 0.1913 0.1931 0.0018 0.0091 Generate .h 0.1931 0.1931 0.0000 0.0000 Total 0.0000 0.1931 0.1931 1.0000
Diffstat (limited to 'src/analyze.cpp')
0 files changed, 0 insertions, 0 deletions