THotPDF.LoadedFontDecoderCacheMaxBytes
Defines the maximum estimated memory retained by parsed font decoders for the current loaded document
Declaration
property LoadedFontDecoderCacheMaxBytes: Int64
read GetLoadedFontDecoderCacheMaxBytes
write SetLoadedFontDecoderCacheMaxBytes;
Behaviour
- The default budget is 33554432 bytes and the cache also retains at most 128 entries
- Reducing the budget evicts least recently used entries immediately
- Setting the budget to zero disables retention while decoder requests continue to work
- Negative values are normalised to zero
- Loading another document clears retained decoders and resets statistics
See also: GetLoadedFontDecoderCacheInfo, Cache Infrastructure