This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Move unlikely executed macro to function
authorKarl Williamson <khw@cpan.org>
Tue, 13 Jan 2015 05:31:07 +0000 (22:31 -0700)
committerKarl Williamson <khw@cpan.org>
Tue, 13 Jan 2015 19:19:59 +0000 (12:19 -0700)
commit2726666d48c2d6d699d0a840da6e9f7a2fdfde22
tree18606efa6f54293d89585b056977a63c44b41ab7
parentc0f3a893f19a236736869b0203e771705a22d986
Move unlikely executed macro to function

The bulk of this macro is extremely rarely executed, so it makes sense
to optimize for space, as it is called from a fair number of places, and
move as much as possible to a single function.

For whatever it's worth, on my system with my typical compilation
options, including -O0, the savings was 19640 bytes in regexec.o, 4528
in utf8.o, at a cost of 1488 in locale.o.
embed.fnc
embed.h
locale.c
perl.h
proto.h