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

This commit is contained in:
xiaoqidun committed 2026-07-14 10:21:21 +08:00
1 parent c17aae5a74
commit 3fecdbf89e
6 files changed
+23 -15

No files matched your search

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