On Mon, Jun 27, 2005 at 03:57:23PM -0700, Michael G Schwern wrote:
> > mem used at end     total malloced  command
> > 159904              195136          ./perl -Ilib -MExporter -e 1
> > 176330              224251          ./perl -Ilib -e 'use Carp; 1'
> > 
> > it would appear that Carp uses now 15-30K, assuming that Exporter gets 
> > loaded
> > anyway.
> 
> How much did it use before?  Without that information we don't know what
> was saved.  It would also be nice to see each optimization individually to
> see if its saving anything.

cummulative changes, all running ./perl -Ilib -e 'use Carp; 1'

mem used at end total malloced
178232          234839          before the changes
178232          230735          moving pod to end
178232          230735          removing comments
178232          228575          removing pod
178023          226624          moving variable initialisations to Carp::Heavy
176330          224251          streamlining code

So moving and removing the pod both affect the accumulated mallocs(), but
don't affect the residual unfreed memory at process exit.

The totality of these changes save somewhere between 2-10K

-- 
In my day, we used to edit the inodes by hand.  With magnets.

Reply via email to