Parallel Self-Hosted Code Generation in the Zig Compiler

13 kristoff_it 2 6/14/2025, 7:15:46 PM ziglang.org ↗

Comments (2)

jiehong · 16h ago
The (poop emoji) in the peak RSS delta is fun. I guess a higher value is not great, but that’s unexpected to me.

Or perhaps this is an automatic font conversion for some reasons.

Improvements are great to see, and seems to be following the post 0.14 release plan, so good job!

AndyKelley · 15h ago
That's fully expected - consider when you do multiple things at the same time, it necessarily requires separate memory.

For a simple example consider if you are editing a photo. Your photo editing application requires X amount of memory. Now you leave that running and begin editing a second photo at the same time. To do this requires somewhere between X and X * 2 amount of memory, depending on how much application state can be shared between the two instances.