|
|
|
|
|
by AndyKelley
1033 days ago
|
|
We also migrated all compile-time types and values to be stored in a similar fashion: https://github.com/ziglang/zig/pull/15569 Perf was a bit of a wash on this one but it means we can serialize most of the compiler's state with a single pwritev syscall. For a 300,000 line codebase, this data takes up 30 MiB and uses the same format on disk as in memory. On my laptop, 30 MiB can be written from memory to disk in 25ms. This is one puzzle piece for incremental compilation. More puzzle pieces are listed in the PR description here: https://github.com/ziglang/zig/pull/16917 |
|