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

This commit is contained in:
2026-07-14 10:21:21 +08:00
parent c17aae5a74
commit 3fecdbf89e
6 changed files with 23 additions and 15 deletions
+1
View File
@@ -73,6 +73,7 @@ func NewRenderer(reader *Reader, opts ...RendererOption) *Renderer {
FontMap: make(map[string]*canvas.FontFamily),
fontFSCache: make(map[fontFSKey]*canvas.FontFamily),
textGlyphPathCache: make(map[textGlyphPathCacheKey]textGlyphPathCacheValue),
templatePageCache: make(map[string]*PageContent),
}
for _, opt := range opts {
opt(r)