Skip to content

feat(shm): support full value writes by key reference - #42

Open
carsontung666 wants to merge 2 commits into
array2d:mainfrom
carsontung666:feat/shared-value-write-refs
Open

carsontung666 wants to merge 2 commits into
array2d:mainfrom
carsontung666:feat/shared-value-write-refs

Conversation

@carsontung666

Copy link
Copy Markdown
Collaborator

Change

Add an optional full-value write by key reference. It validates the complete XValue and preserves normal write, metadata, extension, and diagnostic behavior. References identify shared ART nodes; value contents and allocation capacity remain in shared memory.

Preserve the original reference when virtual-path refresh fails, preventing subsequent reads from using an unrelated node.

Validation

7/7 CTests; independent review matched normal writes across 520 differential cases, including metadata changes, malformed values, ART growth, deletion/recreation, extensions, and parent references.

Joint default-runtime benchmark with kvlang #364 and kvspace #29: all 10 workloads / 30 frozen scales, 9 alternating pairs, matching Python outputs. Algorithm geometric mean: 1.207x; whole CLI: 1.021x. This is a combined runtime/backend result, not an isolated backend speedup. Raw results and conditions.

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