Skip to content

mmap#47

Draft
ThomasWaldmann wants to merge 6 commits into
masterfrom
mmap
Draft

mmap#47
ThomasWaldmann wants to merge 6 commits into
masterfrom
mmap

Conversation

@ThomasWaldmann
Copy link
Copy Markdown
Member

@ThomasWaldmann ThomasWaldmann commented Apr 5, 2026

See #45.

@ThomasWaldmann ThomasWaldmann marked this pull request as draft May 1, 2026 13:23
Introduce a dedicated `header` pointer that tracks the start of the mmap
region.

Extend `HEADER_FMT` to include `capacity`, `used`, and `kv_used` directly
in the binary header (previously stored in the JSON metadata blob).

The idea is that we can easily update these values without recreating
the JSON inside the mmapped file. The JSON shall only contain stuff that
does not change and that is difficult to map to a fixed layout.

`__init__`: reconstructs hash table from KV array when opening an
existing mmap file, replacing duplicated logic in `open_mmap`

Fix `test_mmap_delete_persistence`: assertions were testing the inverse
of the actual delete range (0..24 and 75..99 kept, 25..74 deleted)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant