![]() |
Smalltalk/X WebserverDocumentation of class 'CachingRegistry': |
|
Class: CachingRegistryInheritance:Object | +--Collection | +--Set | +--Dictionary | +--IdentityDictionary | +--WeakIdentityDictionary | +--Registry | +--CachingRegistry
Description:A CachingRegistry behaves generally like a registry; However, it keeps hard references to the last n registered objects, preventing them from being garbage collected (and finalized). This is useful for resources, which do not cost too much memory, but are expensive to allocate - a special candidate of this kind are XFonts. With a CachingRegistry, fonts are kept a bit longer alive and can therefore often be reused - even if temporarily unreferenced. This is kind of experimental. [instance variables:] keptObjects Collection hard referenced objects cacheSize Integer number of hard references Related information:Class protocol:instance creationInstance protocol:enumerating
|
|
ST/X 7.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Mon, 04 Dec 2023 09:01:42 GMT
|