This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
S_uiv_2buf: faster integer stringification algorithm
authorTomasz Konojacki <me@xenu.pl>
Thu, 29 Nov 2018 11:24:03 +0000 (12:24 +0100)
committerTony Cook <tony@develop-help.com>
Wed, 12 Dec 2018 04:19:30 +0000 (15:19 +1100)
commitdd0a5f5f02475a77bd12a1a4b201e77be6eaa969
treee0eee751a679298a4341cdc8c933a1c86bab7067
parentc6f0b8cad41ece9c977c36dd4febab2dbb304421
S_uiv_2buf: faster integer stringification algorithm

Processing two digits at a time results in noticeable performance
improvement for larger numbers.

The previous version of the function was being automatically inlined
by gcc because of its small size. It's no longer the case so I had to
use PERL_STATIC_INLINE.

I have marked the UV branch as UNLIKELY because UVs are *much* rarer
than IVs.

[perl #133691]
embed.fnc
proto.h
sv.c