« Return to Thread: Size of the image

Re: Size of the image

by Liz Wendland :: Rate this Message:

Reply to Author | View in Thread

Dear Jérôme,

I have the same problem with my Croquet images.  I believe the problem
is discussed in the following thread:

https://lists.duke.edu/sympa/arc/croquet-dev/2006-10/msg00014.html

The silly solution that we use is to click on the morphic desktop with
the yellow mouse button (option+click on the Mac) and add a few menu
items to the menu:

    aMenu add: 'Clear TestingScriptRegistry' target:
TestingScriptRegistry action: #removeUnreferencedKeys.
    aMenu  addLine.
    aMenu add: 'Empty Trash Can' translated target: Utilities action:
#emptyScrapsBook.
    aMenu add: 'Clear Command History' target: CommandHistory action:
#resetAllHistory.
    aMenu add: 'Collect Garbage' target: Smalltalk action:
#garbageCollect.    aMenu addLine.

I then run these before I save my image to clean up any hanging
references which will bloat my image.

Hope this helps,
Liz Wendland
University of MN

Jérôme Fuselier wrote:

> Hi,
>  Starting playing with Croquet, I've created a new version of the
> actual official image to play a bit and its size has grown very
> quickly (about 2 or 3 times bigger). I don't really understand why,
> I've just created some new classes to define my own islands and I
> believe that the objects created are well destroyed. Is there a way to
> discover what takes so much memory in the image ? (dead objects, ...)
>
>
> Thanks,
> Jérôme

 « Return to Thread: Size of the image