Skip to content

Latest commit

 

History

History
10 lines (8 loc) · 495 Bytes

technote007.md

File metadata and controls

10 lines (8 loc) · 495 Bytes

Tech Note 007 - Cache This

Use a hash cache to find already loaded resources

  • Identical Fonts, images, sound files, etc. may be used in various different contexts which may not coordinate
  • A hash of the identifier (e.g. filename) uses a fixed amount of space and can be stored in a b-tree
  • Need something like a weak pointer
  • File system integrated
  • Cacheing records (structured content) not hidden from GC -- enabling automatic reclamation
  • Generalize a module's This* command