in reply to Dprof and main::BEGIN
I am seeing that the majority of time (40% or more) is being taken up with many thousands of calls to main::BEGIN.The answer can be found in a recent p5p post by Tim Bunce
A BEGIN block gets a CV, executes, the CV is freed and another sub is created with the same CV address. The result is that Devel::DProf (for example) will report BEGIN blocks being called many times when in fact it's a different sub. Very frustrating.The initial p5p thread starts here.
HTH
_________
broquaint
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Dprof and main::BEGIN
by dbush (Deacon) on Nov 29, 2002 at 15:48 UTC | |
by broquaint (Abbot) on Nov 29, 2002 at 16:00 UTC | |
by dbush (Deacon) on Dec 03, 2002 at 18:36 UTC | |
by Elian (Parson) on Nov 29, 2002 at 16:00 UTC |
In Section
Seekers of Perl Wisdom