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

This commit is contained in:
xiaoqidun committed 2026-07-13 23:38:58 +08:00
1 parent c8c5ce2cfc
commit 8a68014262
4 files changed
+48 -1

No files matched your search

+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)