diff options
| author | Gabriel Schneider <[email protected]> | 2026-10-23 17:11:12 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-10-23 17:11:12 -0300 |
| commit | ef0de36bf473f22d37cc885054bf4eed98bf275f (patch) | |
| tree | fc5d8522a13efc72a945cc04e872e35e44b111a6 /src/File.zig | |
| parent | 1b0ce981c7a0f0feac926023ed6be53da45a36aa (diff) | |
| download | pardes-ef0de36bf473f22d37cc885054bf4eed98bf275f.tar.gz pardes-ef0de36bf473f22d37cc885054bf4eed98bf275f.zip | |
Arenas are regions mapped once with a page bitmap under a DebugAllocator; the shells allocate from one too
Each arena (pardes, frame, lsp, tree_sitter, image, pdf and the new host)
maps its region once and tracks 4 KiB pages in a bitmap; a full region
spills to malloc and counts it. Freed runs of 64 KiB to 1 MiB go back at
once, the rest at memory.trim. In a release build init.gpa is
memory.host over libc's malloc. Measured against the old arenas: typing
in a 7.4 MB file 1.95 ms a key (was 2.0), a V8 Callstack page 142 MiB
(was 134) and 42 MiB after close (was 69).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'src/File.zig')
0 files changed, 0 insertions, 0 deletions
