Squeak low on space...

Keith Hodges keith_hodges at yahoo.co.uk
Wed Oct 17 16:19:34 UTC 2007


Dear All,

If possible I would like to encourage package developers to support two
conventions for cleaning up images

Firstly to remember to adopt the memory hogs convention (which is rarely
used) of implementing #freeSomeSpace.

Although the lowspace watcher currently requires potential memory hogs
to register themselves, I propose implementing the methods anyway, with
a utility method available via 'SmalltalkImage current freeSpace' to
invoke an image wide belt tightening.

#freeSomeSpace would be for cleaning out caches and so forth that would
not imped normal functioning.

examples:

Utilities-class-#freeSomeSpace
        self cleanseOtherworldlySteppers

Secondly to formalize #cleanUp as a message that users will send in
order to try and tidy up an image as much as possible before saving or
deploying.

examples:

In Seaside this would require:

WACachedDocument class-#cleanUp
    self clearCache
WAHalo-class-#cleanUp
    self initialize
WAKom-class-#cleanUp
    self stop
WARegistry class-#cleanUp
    self clearAllHandlers

In DynamicProtocols this would require
DynamicProtocols-#cleanUp
    self invalidateCache

I am sure there are many other instances where this would be useful.

how about it?

Keith







More information about the Squeak-dev mailing list