| Class | PDF::Reader::ObjectCache |
| In: |
lib/pdf/reader/object_cache.rb
|
| Parent: | Object |
A Hash-like object for caching commonly used objects from a PDF file.
This is an internal class used by PDF::Reader::ObjectHash
| CACHEABLE_TYPES | = | [:Catalog, :Page, :Pages] | These object types use little memory and are accessed a heap of times as part of random page access, so we‘ll cache the unmarshalled objects and avoid lots of repetitive (and expensive) tokenising |