On Apr 4, 2012, at 5:23 PM, Hilaire Fernandes wrote:
>
>
> Also clean up is not as good as before, cleaned image is still 22MB (in
> contrast to about 10MB with 1.3)
>
This is strange...
ScriptLoader new cleanUpForProduction
generates a 8.4 MB Image...
What you should check is that #cleanUpForProduction changes a bit, it is much
simpler now (I move more stuff
to the #cleanUp: methods and we cleaned up the image in general a little):
cleanUpForProduction
"self new cleanUpForProduction"
"trim MC ancestory information"
MCVersionInfo allInstances do: [ :each | each instVarNamed: 'ancestors'
put: nil ].
"delete logo"
PolymorphSystemSettings showDesktopLogo: false.
"unload packages"
Smalltalk globals at: #SUnitUnloader ifPresent:[ :unloader | unloader
new unloadAll ].
(MCPackage named: 'HelpSystem-Core') unload.
(MCPackage named: 'FixUnderscores') unload.
(MCPackage named: 'Deprecated14') unload.
self cleanUpForRelease.
(MCPackage named: self theScriptLoaderPackageName) unload.
Smalltalk cleanUp: true except: #() confirming: false.
Smalltalk garbageCollect.
--
Marcus Denker -- http://marcusdenker.de