diff options
author | Tomasz Konojacki <me@xenu.pl> | 2018-11-29 12:24:03 +0100 |
---|---|---|
committer | Tony Cook <tony@develop-help.com> | 2018-12-12 15:19:30 +1100 |
commit | dd0a5f5f02475a77bd12a1a4b201e77be6eaa969 (patch) | |
tree | e0eee751a679298a4341cdc8c933a1c86bab7067 /embed.fnc | |
parent | c6f0b8cad41ece9c977c36dd4febab2dbb304421 (diff) | |
download | perl-dd0a5f5f02475a77bd12a1a4b201e77be6eaa969.tar.gz |
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]
Diffstat (limited to 'embed.fnc')
-rw-r--r-- | embed.fnc | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2691,7 +2691,7 @@ pR |SV * |varname |NULLOK const GV *const gv|const char gvtype \ pX |void |sv_del_backref |NN SV *const tsv|NN SV *const sv #if defined(PERL_IN_SV_C) -nsR |char * |uiv_2buf |NN char *const buf|const IV iv|UV uv|const int is_uv|NN char **const peob +niR |char * |uiv_2buf |NN char *const buf|const IV iv|UV uv|const int is_uv|NN char **const peob i |void |sv_unglob |NN SV *const sv|U32 flags s |const char *|sv_display |NN SV *const sv|NN char *tmpbuf|STRLEN tmpbuf_size s |void |not_a_number |NN SV *const sv |