This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Use in-line 'no overloading' for speed
authorKarl Williamson <khw@khw-desktop.(none)>
Mon, 3 May 2010 16:06:30 +0000 (10:06 -0600)
committerSteffen Mueller <smueller@cpan.org>
Sun, 30 May 2010 14:56:16 +0000 (16:56 +0200)
commitf998e60c2aa1b9879e2c7c365acd05c0799ae46a
tree016ee41ae6a997bc635f34071ebd0175a22c8d45
parent4a68bf9d410f9046c46490523fe5d75c93632a5d
Use in-line 'no overloading' for speed

An earlier performance enhancement was to change the subroutine that
gets the address of a ref to using 'no overloading' and then numifying
the ref, which returns its address.  This patch speeds things up
slightly by in-lining the "no overloading" so that the function call
overhead is avoided.

It also gets rid of the kludge that was done before the original
speed-up that created a local in the call stack of one of the classes so
that the address would only have to be executed once per call stack;
This was subject to failure if maintenance of the code perturbed things
so it didn't work; now the overhead is minimal, so the address is gotten
in each call.
lib/unicore/mktables