THPDFImportedResourceDedupStatistics Record
Reports the imported-resource deduplication cache state: number of cached resources plus lifetime hit and miss counters
Declaration
THPDFImportedResourceDedupStatistics= record
CachedResources: Integer;
Hits: Int64;
Misses: Int64;
end;
Unit
HPDFDoc
Fields
| Field | Purpose |
|---|---|
CachedResources | Number of resources currently held in the imported-resource cache |
Hits | Lookups served by reusing an already imported resource instead of copying it again |
Misses | Lookups that found no cached entry and performed a fresh resource copy |
Usage notes
- Request it from
THotPDF.GetImportedResourceDedupStatisticsafter merge or page-append operations to see how much duplication was avoided - The counters are cumulative per
THotPDFinstance;THotPDF.ClearImportedResourceDedupCacheempties the cache and resets both counters to zero - A high hit ratio with a large
CachedResourcesvalue indicates that page-level merging is reusing shared resources effectively