From: Vincent Pit Date: Mon, 3 Oct 2011 21:25:20 +0000 (+0200) Subject: Talk about the goto() overhead in the documentation X-Git-Tag: v0.17~1 X-Git-Url: http://git.vpit.fr/?a=commitdiff_plain;h=b2d82822b73f234e282b0e290b3cf0c783a65a99;p=perl%2Fmodules%2FScope-Upper.git Talk about the goto() overhead in the documentation --- diff --git a/lib/Scope/Upper.pm b/lib/Scope/Upper.pm index c40f1c8..eefe253 100644 --- a/lib/Scope/Upper.pm +++ b/lib/Scope/Upper.pm @@ -523,6 +523,9 @@ It may help to use a perl higher than 5.8.9 or 5.10.0, as they contain some cont Calling C to replace an L'd code frame does not work when a custom runloop is used or when debugging flags are set with C. In those two cases, L will look for a C statement in its callback and, if there is one, throw an exception before executing the code. +Moreover, in order to handle C statements properly, L currently has to suffer a run-time overhead proportional to the size of the the callback in every case (with a small ratio), and proportional to the size of B the code executed as the result of the L call (including subroutine calls inside the callback) when a C statement is found in the L callback. +Despite this shortcoming, this XS version of L should still run way faster than the pure-Perl version from L. + =head1 DEPENDENCIES L (standard since perl 5.006).