summaryrefslogtreecommitdiff
path: root/src/sam_edit.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-10-23 17:11:12 -0300
committerGabriel Schneider <[email protected]>2026-10-23 17:11:12 -0300
commitef0de36bf473f22d37cc885054bf4eed98bf275f (patch)
treefc5d8522a13efc72a945cc04e872e35e44b111a6 /src/sam_edit.zig
parent1b0ce981c7a0f0feac926023ed6be53da45a36aa (diff)
downloadpardes-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/sam_edit.zig')
0 files changed, 0 insertions, 0 deletions