I've taken the opportunity of make making Carp.pm even lighter (change
#24995), by moving its pod into a separate file, deferring the creation of
various package vars until Carp::Heavy is included, and stripping longmess
and shortmess so they are just empty hooks that trigger 'require
Carp::Heavy'

Running valgrind to get an idea of:
* malloc()ed memory not freed at end (a vague indication of process size),
* total mallocs() - gives an upper bound on peak memory usage, although
doesn't allow for memory that was free()ed and them re-malloc()ed - it
would count that memory twice;

I get:

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.

(this is a debugging perl; without that it would probably be less)

Dave.

-- 
This email is confidential, and now that you have read it you are legally
obliged to shoot yourself. Or shoot a lawyer, if you prefer. If you have
received this email in error, place it in its original wrapping and return
for a full refund. By opening this email, you accept that Elvis lives.

Reply via email to