Skip to content

kvlang: integrate headlenpow XValues and address-only runtime (#329) - #354

Draft
carsontung666 wants to merge 1 commit into
array2d:masterfrom
carsontung666:feat/issue-329-runtime-redo
Draft

carsontung666 wants to merge 1 commit into
array2d:masterfrom
carsontung666:feat/issue-329-runtime-redo

Conversation

@carsontung666

@carsontung666 carsontung666 commented Sep 26, 2026 •

Copy link
Copy Markdown
Contributor

Issue #329:layout/runtime 接入 headlenpow XValue,执行帧写入物理 *T 槽,PC 和变量只保存在 KVSpace。本次覆盖更新还让 opcode 记录实际参数数,解码时只读实际参数槽和必要的写目标。

性能对比:Release,Intel Xeon Gold 6418H,使用 benchmark/cases 的相同输入,核对输出后取 __bench_ns 中位数(毫秒,越小越好)。SHM 每组交错运行 7 次;FS/Redis 每组交错运行 3 次。

SHM 用例 #329 前 原 PR 本 PR 本 PR + 分配器修复
iops(2000) 13.3 73.6 55.3 54.5
fib(10) 22.3 98.9 93.8 29.7
fib(13) 96.1 428.4 424.8 124.5
后端与用例 原 PR 本 PR
FS iops(500) 4898.8 4725.0
FS fib(10) 5368.7 5272.7
Redis iops(500) 2397.0 1809.9
Redis fib(10) 3646.7 3249.9

“本 PR + 分配器修复”使用 slotsboxmalloc#9 的本地构建;该修复尚需合并、发布并更新 kvspace-c 依赖。#329 前一列使用对应的旧 ABI 依赖;顺序 iops 目前仍慢于 #329 前。

kvspace-c#36 的新提交去掉了 SetValue 的重复校验和元数据同步。固定单核交错各 15 组、使用相同分配器修复时,SHM iops(2000) 为 57.0→54.5 ms,fib(13) 为 131.2→126.1 ms;这仍未消除相对 #329 前的顺序循环差距。

@carsontung666
carsontung666 force-pushed the feat/issue-329-runtime-redo branch from 0b4dce8 to 51912d9 Compare September 26, 2026 14:00
@carsontung666
carsontung666 force-pushed the feat/issue-329-runtime-redo branch from 51912d9 to f5cd9af Compare September 28, 2026 16:38

This branch has not been deployed

No deployments
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