|
Smalltalk/X WebserverDocumentation of class 'CachingRegistry': |
|
|
Class: CachingRegistryInheritance:Object | +--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 canditate 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
[class variables:]
Related information:Instance protocol:private registering objects |
|
|
ST/X 6.1.1; WebServer 1.620 at exept:8081; Wed, 23 May 2012 08:02:07 GMT
|