good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: Dprof and main::BEGINby broquaint (Abbot) |
on Nov 29, 2002 at 14:25 UTC ( [id://216529]=note: print w/replies, xml ) | Need Help?? |
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
_________
In Section
Seekers of Perl Wisdom
|
|