Script to Shrink the Image of Squeak 3.6
All necessary files are in the archive file
Shrink36.zip. This archive contains
two files:
- Shrink36.12.cs - the shrinking script
- selectedFixes.14.cs - a change set with some important fixes for Squeak 3.4
It is important to close all change sorters (Change sorters contain
references to classes and may therefore obstacle the complete
removal of classes.)
- Start a fresh 3.6
- Enter an MVC project
(you may wish to check the preferences before you enter the
MVC project. You can change preferences also in a MVC project,
but it is easier to do with the Morphic preferences selection tool)
- Open the transcript and the file list, file in Shrink36.12.cs
(The transcript is not strictly necessary, but it is helpful)
- In a workspace, evaluate:
Smalltalk preMajorShrink.
Smalltalk majorShrink.
- Evaluate with 'printIt':
Smalltalk obsoleteClasses size.
This should answer 0. If it does not, try it
a few times. (It may also be helpful to do a full GC)
- Evaluate:
Smalltalk condenseSources.
This will ask you for a name for the new sources file and
write all sources from both the changes file and the sources
file into the new sources file.
- File in selectedFixes.14.cs
- Save the image.
This should give a MVC-only system with
a 1.5 MBytes image and a 3.5MBytes sources file.