3 ms·
Not bad. For comparison Nim builds itself using just 668MiB.
by dom96 4y ago
Not bad. For comparison Nim builds itself using just 668MiB.
- deleted 4y ago[deleted]
- AndyKelley 4y agoNice work! I suspect the difference mainly comes down to the fact that Zig compiles everything into a single compilation unit. As you can see, this has tradeoffs. It produces better code (single-compilation-unit is what "LTO" approximates) but it requires more memory and more code needs to be rebuilt on changes.