THPDFType3GlyphCacheStats Record
Reports hit, miss, eviction, and bypass behavior of the Type 3 glyph CharProc cache used while rendering
Declaration
THPDFType3GlyphCacheStats= record
EntryCount: Integer;
CachedTokenCount: Integer;
HitCount: Int64;
MissCount: Int64;
EvictionCount: Int64;
OversizeBypassCount: Int64;
end;
Unit
HPDFPageRenderer
Fields
| Field | Purpose |
|---|---|
EntryCount | Number of Type 3 glyph procedures currently held by the per-render cache |
CachedTokenCount | Total content tokens held across cached glyph procedures, bounded by the cache budget |
HitCount | Glyph procedures served from the cache instead of being re-interpreted |
MissCount | Glyph procedures not found in the cache and interpreted fresh |
EvictionCount | Glyphs dropped from the cache to stay within the token budget |
OversizeBypassCount | Glyphs too large to cache, interpreted directly without caching |
Usage notes
- Each page render reports its own counters, and the last values remain readable through
THotPDF.GetLastType3GlyphCacheStats - A high
OversizeBypassCountmeans glyph CharProcs exceed the cache budget and are re-interpreted on every use - The shared cross-render cache keeps separate counters in
THPDFRendererSharedCacheStatistics