feat(资源管理): 完善资源管理与校验,优化性能
build.yaml / build (push) Successful in 50s

This commit is contained in:
xiaoqidun committed 2026-10-13 14:24:37 +08:00
1 parent 0e423c9713
commit 7bdb03f7bd
12 files changed
+319 -68

No files matched your search

+2
View File
@@ -39,6 +39,7 @@ type Reader struct {
resourcesRead map[string]bool
resourceFiles map[string]string
imageCatalog []ImageInfo
resourceInfoCache []ResourceInfo
mediaCache map[string]MultiMedia
fontCache map[string]*Font
fontResourcesRead bool
@@ -658,6 +659,7 @@ func (r *Reader) initRootContext(ctx context.Context) error {
r.documentRoot, r.RootDir = "", ""
r.relatedPending, r.fontResourcesRead = false, false
r.imageCatalog = nil
r.resourceInfoCache = nil
r.Stamps, r.Annots, r.annotationFiles = nil, nil, nil
r.ResMap = make(map[string]string)
r.resourcesRead = make(map[string]bool)