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:06:11 +0000 (10:06 -0700)
committerKarl Williamson <public@khwilliamson.com>
Fri, 11 Nov 2011 20:30:59 +0000 (13:30 -0700)
commitcbcd5ab57a4aefcf531cdd93217554a9b21babab
tree5b3bc790c2c5b216dbdc98b9d24cf8e3f82d4b0f
parent732fbc05bbf5ec0f88eda6450a31c2e7c2b4748d
pp.c: Call subroutine instead of repeat code

Now that toLOWER_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