mirror of
https://github.com/2234839/web-font.git
synced 2026-09-04 23:02:27 +08:00
仅需栈长度(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>