Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:25136 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 13249 invoked by uid 1010); 2 Aug 2006 16:22:55 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 13234 invoked from network); 2 Aug 2006 16:22:55 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Aug 2006 16:22:55 -0000 X-PHP-List-Original-Sender: andrei@gravitonic.com X-Host-Fingerprint: 204.11.219.139 lerdorf.com Linux 2.5 (sometimes 2.4) (4) Received: from ([204.11.219.139:54633] helo=lerdorf.com) by pb1.pair.com (ecelerity 2.1.1.3 r(11751M)) with ESMTP id 32/D1-45114-B51D0D44 for ; Wed, 02 Aug 2006 12:22:53 -0400 Received: from [66.228.175.145] (borndress-lm.corp.yahoo.com [66.228.175.145]) (authenticated bits=0) by lerdorf.com (8.13.7/8.13.7/Debian-1) with ESMTP id k72GMm6v009707; Wed, 2 Aug 2006 09:22:48 -0700 In-Reply-To: <00b701c6b613$d5d7a070$0201a8c0@pc1> References: <001501c6b47f$7ee8f380$0201a8c0@pc1> <00b701c6b613$d5d7a070$0201a8c0@pc1> Mime-Version: 1.0 (Apple Message framework v623) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-ID: <81681cd5aef43cff03efbe50223e5503@gravitonic.com> Content-Transfer-Encoding: 7bit Cc: Date: Wed, 2 Aug 2006 09:23:26 -0700 To: "Matt W" X-Mailer: Apple Mail (2.623) Subject: Re: [PHP-DEV] zend_u_strtod is slow - possible fix From: andrei@gravitonic.com (Andrei Zmievski) 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?