崮生(子虚) 94f89ddbb8 perf(cff): collectSubrRefs 用 stackLen+lastVal 替代 stack:number[]
仅需栈长度(HSTEM 算 stemCount)与栈顶值(CALLSUBR/CALLGSUBR 取调用编号),
无需完整栈数组。消除每 operand 的 push(装箱)与 length=0 重置。

otf-思源8字 subsetOTF min 0.319→0.297ms(-7%),p50 0.401→0.390ms。
输出逐字节相同。与 rewriteCharstring/replaceDictOffsets 累计 otf-思源 -19%。

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-25 02:53:41 +08:00
..
2026-04-08 22:05:17 +08:00
2024-08-19 18:10:09 +08:00