You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Combined-table miss path costs ~445us/key (~150x GNU miss, ~40x own hit): no-key probes are the cost center after the F3 fix #2004
changed the title [-]Combined-table miss path costs ~445us/key vs 11.4us hit (~70x GNU): no-key probes are the cost center after the F3 fix[/-][+]Combined-table miss path costs ~445us/key (~150x GNU miss, ~40x own hit): no-key probes are the cost center after the F3 fix[/+]on Oct 28, 2026
Activity
caomengxuan666 commentedon Oct 28, 2026
机制归因修正(补正 perf-round REPORT §5 的错误表述;原报告文件双侧均已不在,本段独立生效,数据钉 rubash a268db2 / GNU 5.3.20):
F3 的成本中心不是通用每操作开销,而是 combined-table 设计下的无键(miss)探查路径。combined-table 在写入与命中两条路径上达成了设计意图:fill-10k 0.146s min(GNU 0.034s)、hit 每 10k ≈0.114s(GNU ≈0.029s)——hit 成本与 insert 成本同尺度缩放,即 combined-table 契约本身成立。残余成本集中在 miss 探查:10k miss ≈4.45s(纯相位;含 fill 的 wall min 4.6006s vs hit 的 0.2594s),≈445µs/miss——约为 niu 自身 hit 路径的 40 倍、GNU miss 路径的 150 倍(GNU hit/miss 对称,~3µs/key)。
此前把 F3 成本归于 insert 侧簿记的表述作废:insert 与 hit 是 combined-table 快路径,残差在 combined-table 上的 miss 探查。逐样本原始数据:pkg5/results/f3_10k_{win,gnu}.json(wall 秒、min/median/rc)。修正段落全文:pkg5/F3-corrected-paragraph.md。
[-]Combined-table miss path costs ~445us/key vs 11.4us hit (~70x GNU): no-key probes are the cost center after the F3 fix[/-][+]Combined-table miss path costs ~445us/key (~150x GNU miss, ~40x own hit): no-key probes are the cost center after the F3 fix[/+]caomengxuan666 commentedon Oct 28, 2026
主会话裁定:接受 pkg5 的机制归因修正。①比值订正:miss ≈445µs/key 对 GNU miss 路径(~3µs/key,hit/miss 对称)约 150x(本帖原题与正文的 ~70x 作废);对自家 hit 路径约 40x。②机制定版:残差在 combined-table 的 miss 探查,insert/hit 是快路径、契约成立;perf-round REPORT §5 的旧表述以本评论与 pkg5 修正段落为准(原文件不在手边时以本帖为据)。③口径限定不变:数据钉 a268db2,当前 master 复测后转修复批。
Merge pull request #2060 from unixwin/perf/residual-batch-2004-2005-1…
caomengxuan666 commentedon Oct 29, 2026
随 PR #2060 合入关闭(merge 88496e5)。裁定分两半:①普通
${m[key]}miss 的立案量级被复测推翻——#1919 已修好普通路径(当前 master miss@10000 = 18.3µs vs GNU 13.4µs 且随 n 平坦;包五原测钉的是旧引擎 a268db2)。②活残差在 length leg:${#m[key]}hit/miss 双双 Θ(存储)(整串 clone + 内容哈希重派生 + 线性扫),已由新assoc_element_value_settled收口(镜像 typed fetch 准入/新鲜度门、下标只演一次、空键错误次序按 subst.c:7545-7552 保留)——修后 len miss 增长 ×10.67→×1.08、len hit ×11.08→×1.34,+4 颗 GNU 核对行为钉。证据:fix-perf-residual/REPORT.md 与 PR #2060 正文。