in reply to package DB penalty?
The @DB::args array is populated by copying the pointers from the actual @_ array, so the cost is a pretty negligible fraction of a caller() invocation - grep for the reference to PL_dbargs in pp_ctl.c to find the 20-odd line block of code involved (within pp_caller()).
I should stress that this is not intended for everyday use, and would suspect that overly imaginative use of this facility is likely to lead you to coredumps and JAPHs.
Hugo
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: package DB penalty?
by Rhandom (Curate) on May 15, 2003 at 14:31 UTC |