| 
  • If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • You already know Dokkio is an AI-powered assistant to organize & manage your digital files & messages. Very soon, Dokkio will support Outlook as well as One Drive. Check it out today!

View
 

FreeSomeSpace

Page history last edited by Ken G. Brown 14 years, 9 months 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.