|
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.1.0.0; WebServer 1.663 at exept.de:8081; Wed, 17 Dec 2025 10:45:31 GMT
|