THPDFType3GlyphCacheStats Record
Reports the hit, miss, eviction and bypass behaviour of the Type 3 glyph CharProc cache used whilst rendering
Declaration
THPDFType3GlyphCacheStats= record
EntryCount: Integer;
CachedTokenCount: Integer;
HitCount: Int64;
MissCount: Int64;
EvictionCount: Int64;
OversizeBypassCount: Int64;
end;
Unit
HPDFPageRenderer
Fields
| Field | Purpose |
|---|---|
EntryCount | How many Type 3 glyph procedures the per-render cache currently holds |
CachedTokenCount | Content tokens held in total across cached glyph procedures, bounded by the cache budget |
HitCount | Glyph procedures served out of the cache rather than being re-interpreted |
MissCount | Glyph procedures that were not in the cache and were interpreted afresh |
EvictionCount | Glyphs dropped from the cache so as to stay within the token budget |
OversizeBypassCount | Glyphs too large to cache, interpreted directly and never cached |
Usage notes
- Each page render reports counters of its own, and the final values remain readable through
THotPDF.GetLastType3GlyphCacheStats - A high
OversizeBypassCountmeans the glyph CharProcs exceed the cache budget and get re-interpreted on every use - The shared cross-render cache keeps its counters separately in
THPDFRendererSharedCacheStatistics