This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Minimise the actions of the BEGIN block in B.pm
authorNicholas Clark <nick@ccl4.org>
Sun, 20 Mar 2011 10:25:21 +0000 (10:25 +0000)
committerNicholas Clark <nick@ccl4.org>
Sun, 20 Mar 2011 10:25:21 +0000 (10:25 +0000)
commit4aa23ba6a3fa547a6950067258d60ad650571e77
tree26fde57c89cb4aa15b5e4b9ae78e7ada70813812
parent88ecb8a6b9eca675d383c8a0292e9706cb2870d1
Minimise the actions of the BEGIN block in B.pm

Retain the call to XSLoader::load() at BEGIN time, as we want the constants
loaded before the compiler meets OPf_KIDS below, as the combination of having
the constant stay a Proxy Constant Subroutine and its value being inlined
saves a little over .5K
ext/B/B.pm