Newsgroups: comp.lang.smalltalk
Path: cantaloupe.srv.cs.cmu.edu!das-news2.harvard.edu!news2.near.net!news.mathworks.com!hookup!swrinde!gatech!howland.reston.ans.net!torn!nott!cunews!freenet.carleton.ca!FreeNet.Carleton.CA!al938
From: al938@FreeNet.Carleton.CA (Steve Chepurny)
Subject: Re: Smalltalk implimentation style
Message-ID: <CzyspL.2t5@freenet.carleton.ca>
Sender: al938@freenet3.carleton.ca (Steve Chepurny)
Reply-To: al938@FreeNet.Carleton.CA (Steve Chepurny)
Organization: The National Capital FreeNet
References: <3baa3j$fdk@clarknet.clark.net>  
Date: Mon, 28 Nov 1994 06:29:45 GMT
Lines: 38


In a previous article, oneel@clark.net () says:

>Hi,
>  I have some questions on smalltalk implimentation style in order to more
>fully understand smalltalk.  In playing around with Smaltalk/V and IBM's Visual
>Age it seems that one produces a standalone executable by saving an image.
>This image has not only the base smalltalk classes but also any other classes
>you happen to have in memory at the time.  Is there a way to make these
>images smaller?  I'm thinking of what the lisp folks call a "tree shaker".  Or,
>more likely, am I missing some critical point in smalltalk that makes this 
>difficult.

The best way to make an image smaller is to remove all of the classes and
methods that your application doesn't use. This is dangerous if you:
1) Don't know what your doing (at least somewhat)
or 
2) Aren't careful

The safest Classes to remove from your executable image are ones that you
would NEVER use in an application such as: ClassHierarchyBrowser,
ClassBrowser,MethodBrowser,Debugger, etc.. If you really need to make more
space, you can also remove certain methods from other classes that you are
sure that you don't use. Remember... just because your own classes don't
use a certain class directly (such as Array), it doesn't mean that your
application won't use the Array class indirectly (such as when using other
collections) .

Good Luck!

--Steve


--
-----------------------------------------------------------------------------
Steve Chepurny                     |         Carleton University
al938@freenet.carleton.ca      	   |         Psychology II    
------------------------------------------------------------------------------
