mirror of
https://github.com/2234839/web-font.git
synced 2026-09-14 21:05:49 +08:00
fmt2 ChainContext 的 ClassDef 重映射原用 origToNew.get() 逐 gid 查询, FiraCode fmt2 ClassDef 展开后 9699 个 gid 每个 Map.get(~9ns) 是 fmt2 路径 热点。改用 gidLookup Int32Array 索引(~1ns),语义等价(gidLookup[g]>=0 ⟺ origToNew.has(g) 且值相同)。输出字节三字体 sha256 全一致,SSIM 不变 (FiraCode 0.9923)。writeChainFormat2 移除冗余 origToNew 参数。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>