summaryrefslogtreecommitdiff
path: root/embed.fnc
diff options
context:
space:
mode:
authorTomasz Konojacki <me@xenu.pl>2018-11-29 12:24:03 +0100
committerTony Cook <tony@develop-help.com>2018-12-12 15:19:30 +1100
commitdd0a5f5f02475a77bd12a1a4b201e77be6eaa969 (patch)
treee0eee751a679298a4341cdc8c933a1c86bab7067 /embed.fnc
parentc6f0b8cad41ece9c977c36dd4febab2dbb304421 (diff)
downloadperl-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.fnc2
1 files changed, 1 insertions, 1 deletions
diff --git a/embed.fnc b/embed.fnc
index 408917e0a7..04d560b6d6 100644
--- a/embed.fnc
+++ b/embed.fnc
@@ -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