Skip to content

while-read loop still costs ~418us/line (68x GNU) after the cat-drain fix (4us/line): read-loop face remains #2005

Closed

Description

@caomengxuan666

来源:包五 F5 复测(重建协议)。cat drain 面已修(4µs/line,对照 #1951 的 290µs/line),但 while-read 循环仍 418µs/line(GNU 的约 68x)——read 循环面是独立残留。归宿:perf 批,与 F3 miss 帖同轮在当前 master 复测坐实后排修。

Activity

  1. added
    P2-medium
    performance
    on Oct 28, 2026
  2. caomengxuan666 commented on Oct 29, 2026

    @caomengxuan666
    MemberAuthor

    按前提证伪关闭(证据-only,无代码变更,随 PR #2060 的裁定节合入记录,merge 88496e5)。

    当前 master 复测分解:while-read 从 procsub/文件/管道三源同价(172/139/129µs/line,负载窗口),纯 arith 循环已 76µs/iter、read 只加 ~21µs/iter、同一 procsub 的 cat 排空 1.3µs/line(#1952 流式修复有效)。立案的 418µs/68× 钉的是 #1952 合并前引擎(a268db28)——read/procsub 特异缺陷不成立,残差就是 while+arith 地板税族,已由 #682 跟踪,本单不另开面。连带注记:#1951 的 0.29ms/line 为同一过期形状(该单功能缺陷已由 #2017 修复关闭,此注记只正其性能口径)。证据:fix-perf-residual/REPORT.md。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

P2-mediumperformance

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions