4 ms·
> Memory usage is improved by a factor of about 3x. For Zig, building itself went from using 9.1 GiB to 2.7 GiB. Pretty impressive.
by christophilus 4y ago
> Memory usage is improved by a factor of about 3x. For Zig, building itself went from using 9.1 GiB to 2.7 GiB.
Pretty impressive.
- mhd 4y agoHow many processes does this involve, i.e. `make -jX` for which X?
- dralley 4y agoAndrew did a nice talk on the kinds of modifications that were necessary to get those improvements https://vimeo.com/649009599 https://vimeo.com/649009599
- diffxx 4y ago
- dom96 4y agoNot 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.
- tomcam 4y agoThat is stunning