Contents

Script to Shrink the Image of Squeak 3.6


All necessary files are in the archive file Shrink36.zip. This archive contains two files:

It is important to close all change sorters (Change sorters contain references to classes and may therefore obstacle the complete removal of classes.)

  1. Start a fresh 3.6
  2. 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)
  3. Open the transcript and the file list, file in Shrink36.12.cs (The transcript is not strictly necessary, but it is helpful)
  4. In a workspace, evaluate:
    Smalltalk preMajorShrink.
    Smalltalk majorShrink.
  5. 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)
  6. 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.
  7. File in selectedFixes.14.cs
  8. Save the image.

This should give a MVC-only system with a 1.5 MBytes image and a 3.5MBytes sources file.


Contents