## 证据(target-perf/REPORT.md §4) 0 字节脚本 12.6ms 是底价;但任何带参数/内容(含 `--version`、`-c ''`)都 +~28ms 一次性懒初始化。嫌疑:首次 tokenize 的正则表构建。另 Windows Defender 间歇 +25~30ms 漂移(仅影响 <15ms 快项,报告已注明)。对 shebang 链(每脚本一进程)与未来 sh 快速通道影响直接。 ## 修复方向 打点二分定位懒初始化块;正则表 lazy_static 一次构建或编译期生成;sh 名字调用跳过可选初始化。
Activity
caomengxuan666 commentedon Sep 26, 2026
已在 6421c96 落地(46796fee):~40ms 中的 14.4ms 是 ppid_value() 的 CreateToolhelp32Snapshot 全进程表遍历 → 改为 NtQueryInformationProcess(PBI).InheritedFromUniqueProcessId(值同,python 父 PID 验证匹配;快照保留为回退)。启动 46.9ms→28.8ms(18×→11×)。残余 ~26ms 为进程底价(0 字节脚本同价),<20ms 目标未全达——Defender 漂移已注明。
perf-suite: dedicated benchmark harness + first baseline (24 probes, …
fix(comsub): align the two in-place comsub entries with GNU's errexit…
perf(#375): read the six dynamic stack arrays from the live view, not…