Re: zend_u_strtod is slow - possible fix
| From: | Andrei Zmievski | Date: | Wed, 02 Aug 2006 16:23:26 +0000 |
| Subject: | Re: zend_u_strtod is slow - possible fix | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-25136@lists.php.net to get a copy of this message | ||
You'd have to ask Derick. He's the one who added it. :) Note that zend_string_to_double() is not actually used anywhere.
-A
On Aug 2, 2006, at 2:12 AM, Matt W wrote:
Hi Andrei, Thanks for your reply. Yeah, obviously it'll still be slower than with an already-binary string. :-) But I figured it's better than before, until something better comes along... Unless there were other plans to rewrite it, is there a way to easily (for me! :-)) have it do all the conversion? I've been thinking about the different string-to-number functions (will send a separate e-mail)... Is there a reason the regular zend_strtod() code is so complicated? zend_string_to_double(), for example, is really simple (and works the same I assume, except for not handling negatives or leading whitespace). Can zend_u_strtod() be implemented with the same methods zend_string_to_double() uses?