Re:Zig's Incremental Compilation Internals
by pron on Thursday July 30, 2026 @08:14PM
(#49117542)
> Reaching within 20% of full native performance while using a garbage collector sounds too good to be true.
What does a garbage collector (in principle) have to do with this? Modern moving collectors (of the kind Java uses, but not the kind Go or Python use) are faster, not slower, than malloc/free, but they do have a higher footprint. That's the point of that algorithm: to reduce the speed overhead of malloc/free and add footprint.
What does a garbage collector (in principle) have to do with this? Modern moving collectors (of the kind Java uses, but not the kind Go or Python use) are faster, not slower, than malloc/free, but they do have a higher footprint. That's the point of that algorithm: to reduce the speed overhead of malloc/free and add footprint.