This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Perl_sv_vcatpvfn_flags: handle %.NNNg case earlier
authorDavid Mitchell <davem@iabyn.com>
Fri, 19 May 2017 15:15:31 +0000 (16:15 +0100)
committerDavid Mitchell <davem@iabyn.com>
Wed, 7 Jun 2017 08:11:03 +0000 (09:11 +0100)
commitf9e6989e75204d4bb17f8bd9f218f30ec363c14d
tree1842dd97fbe65b71b58bfaee1392a43f562661e6
parentb2ad037fc156084b17ba3c2f93be3fe214322208
Perl_sv_vcatpvfn_flags: handle %.NNNg case earlier

In the main loop, we look for %.NNNg and handle it specially.
Change it so that the special-case is only used when precis is small
enough to that it fits in the local ebuf[] rather than the malloced
PL_efloatbuf. This allows the check for this special case to be done
earlier with less redundant calculations.
sv.c