]> granicus.if.org Git - php/commit
Optimize int to string conversion
authorNikita Popov <nikic@php.net>
Fri, 23 May 2014 11:10:50 +0000 (13:10 +0200)
committerNikita Popov <nikic@php.net>
Fri, 23 May 2014 11:10:50 +0000 (13:10 +0200)
commit1d8c499b5152a9e52729ce8e6b2a0feee0192a43
treec9513d51d4a68feea86f94b760fbd2e20990e997
parent47785868968d5e30a6bbaa32797ea251bb42bbd5
Optimize int to string conversion

Probably platform depedentant, but for me snprintf is terribly
slow.

The code for the long printing is taken from the smart string
API.
Zend/zend_operators.c
Zend/zend_operators.h
ext/standard/php_smart_str.h
ext/standard/php_smart_string.h