Squeak low on space...

Igor Stasenko siguctua at gmail.com
Sat Oct 20 12:15:09 UTC 2007


A very good proposal. I think this protocol is best to include to
Kernel library in future squeak releases, such as Behavior or Class.
So, it will be a common scenario to call SomeClass cleanUp , to ask it
for tidy up the space.


On 17/10/2007, Keith Hodges <keith_hodges at yahoo.co.uk> wrote:
> 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
>
>
>
>
>
>


-- 
Best regards,
Igor Stasenko AKA sig.



More information about the Squeak-dev mailing list