This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
pp.c: Call subroutine instead of repeat code
authorKarl Williamson <public@khwilliamson.com>
Fri, 11 Nov 2011 17:28:44 +0000 (10:28 -0700)
committerKarl Williamson <public@khwilliamson.com>
Fri, 11 Nov 2011 20:30:59 +0000 (13:30 -0700)
commit3e16b0e6b272793e45264c51c808855983e8c26d
treefac10a5d80acde421ef5fda67aee8895a30dfb1b
parente67da29c79beab5029f45b828e2315759ffca351
pp.c: Call subroutine instead of repeat code

Now that toUPPER_utf8() has the intelligence to skip going out to
swashes for Latin1 code points, it's not so critical to bypass calling
it for these (for speed).  It simplifies things not to have the
intelligence repeated.  There is the additional overhead of two function
calls (minus the branches saved), but these could be avoided if it comes
down to it by making them in-line.
pp.c