Skip to content

0-copy: 借读零拷贝 + listlen/listat(v0.2.7) - #229

Merged
miaobyte merged 4 commits into
masterfrom
0-copy
Sep 5, 2026
Merged

0-copy: 借读零拷贝 + listlen/listat(v0.2.7)#229
miaobyte merged 4 commits into
masterfrom
0-copy

Conversation

@miaobyte

@miaobyte miaobyte commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

0-copy 借用读重构(shm/durable 返常驻指针、免逐读拷贝)+ list 改 listlen/listat 前缀遍历 + WriteInPlace 就地写;四仓 tag v0.2.7。benchmark 验证 shm 27×/fs 7.4×/redis 1.9×,valid 全 True。

Closes #228

- xvalue/kv/runtime:适配 kvspace 借用读(resolve=0 raw 返指针 → runtime 拷贝自持,
  空值 len=0);frame member 逐名单值借用读(resolve=1 穿透 link),取代已删 kvspaceGetBatch。
- runtime-rs:ffi/engine/main/json/rwir 适配借用读;新增 networld rwir 模块。
…proc rwir docs

- layout ffi:kvspaceList → listlen+listat(前缀遍历,不一次性返整段);lower/code 格式。
- runtime:frame member 借用读走 dir 直连,删 kvlangKvGetBatch 残留;rwir 适配。
- runtime-rs:engine/ffi/json 适配 list 新 API;in-proc rwir 派发(is_inproc→dispatch)。
- deepdive runtime 05/06:runtime-rs 就地 rwir 语义 + 借用读文档同步。
kvlang v0.2.7 = 0-copy(借读零拷贝 + listlen/listat);kvspace-c/durable v0.2.7 同步。
@miaobyte
miaobyte merged commit 16a48ff into master Sep 5, 2026
1 of 2 checks passed
@miaobyte
miaobyte deleted the 0-copy branch September 5, 2026 07:26
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.

0-kvspace/2-runtime: shm 零拷贝读写——统一借用接口 + durable 适配

1 participant