Re: [PHP-DEV] Optimized smart strings

2011-06-20 Thread Derick Rethans
On Mon, 20 Jun 2011, Robert Eisele wrote: > PHP makes use of the smart string library. I've optimized the > smart_str_append_long() macro in order to save one division per cycle. At > the moment one modulo and one division is used. The optimized version uses > one division (which gets optimized aw

[PHP-DEV] Optimized smart strings

2011-06-20 Thread Robert Eisele
PHP makes use of the smart string library. I've optimized the smart_str_append_long() macro in order to save one division per cycle. At the moment one modulo and one division is used. The optimized version uses one division (which gets optimized away in most situations) and one additional multiplic