installer

 

FreeSomeSpace

Page history last edited by Ken G. Brown 4 mos ago

There are two conventions that are being added to the image in 3.11:

- A class which can free up some objects without losing any useful state should implement a class-side freeSomeSpace method. The intent is that the user can run these methods at anytime to immediately decruft the image and fix some common problems. It is intended to do things like:

-- clear caches

-- remove broken entries (like obsolete classes)

- A class which can free up even more space, but does lose useful state should implement a cleanUp method. This is meant to be run whenever a release maintainer wants to release a new image. These scripts do things like:

-- reset preferences

-- re-initialize customizable entities

-- forget history or changesets

 

311-KernelExtensions Kernel-Extensions implements many of these for core Squeak classes, and package maintainers are encouraged to follow.

 

After loading Kernel-Extensions, you can run all of the freeSomeSpace scripts by doing:

 

SmalltalkImage current freeSpace

To run all freeSomeSpace and cleanUp messages do:

 

SmalltalkImage current cleanUpAll

 

These scripts were collected from various emails, blog posts, and previous release teams.

 

Here are some used and unused sources:

 

 

Comments (0)

You don't have permission to comment on this page.