feat(优化性能): 继续提升性能
build.yaml / build (push) Successful in 34s

This commit is contained in:
2026-07-13 23:38:58 +08:00
parent c8c5ce2cfc
commit 8a68014262
4 changed files with 48 additions and 1 deletions
+1
View File
@@ -72,6 +72,7 @@ func NewRenderer(reader *Reader, opts ...RendererOption) *Renderer {
CompositeGraphicUnits: reader.compositeGraphicUnitCache,
FontMap: make(map[string]*canvas.FontFamily),
fontFSCache: make(map[fontFSKey]*canvas.FontFamily),
textGlyphPathCache: make(map[textGlyphPathCacheKey]textGlyphPathCacheValue),
}
for _, opt := range opts {
opt(r)