Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:26911 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 77956 invoked by uid 1010); 12 Dec 2006 16:01:12 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 77935 invoked from network); 12 Dec 2006 16:01:12 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Dec 2006 16:01:12 -0000 Authentication-Results: pb1.pair.com smtp.mail=php_lists@realplain.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=php_lists@realplain.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain realplain.com from 209.142.136.132 cause and error) X-PHP-List-Original-Sender: php_lists@realplain.com X-Host-Fingerprint: 209.142.136.132 msa2-mx.centurytel.net Linux 2.4/2.6 Received: from [209.142.136.132] ([209.142.136.132:57089] helo=msa2-mx.centurytel.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BA/F2-56358-422DE754 for ; Tue, 12 Dec 2006 11:01:11 -0500 Received: from pc1 (dsl-192-84.jax.centurytel.net [69.179.192.84]) by msa2-mx.centurytel.net (8.13.6/8.13.6) with SMTP id kBCG0FWx013872; Tue, 12 Dec 2006 10:00:15 -0600 Message-ID: <018301c71e06$9ef4f840$0201a8c0@pc1> To: , "Ilia Alshanetsky" References: <014f01c71dfd$f0431cd0$0201a8c0@pc1> Date: Tue, 12 Dec 2006 10:00:16 -0600 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1807 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1807 Subject: Re: [PHP-DEV] [PATCH] New, optimized is_numeric_string, and other number stuff From: php_lists@realplain.com ("Matt Wilmas") Hi Ilia, I actually changed +2 to +4. :-) In the original message, I didn't clarify that the % improvement with numbers was obtained using arithmetic operators with one numeric string operand. And the number changes in the parser just made a few % difference in my crude way of trying to test it (repeated "; ..." passed to eval()). There are also many compiler warnings now in is_numeric_unicode() on zend_cmp_unicode_and_literal(), because its parameters aren't declared const... Matt ----- Original Message ----- From: "Ilia Alshanetsky" Sent: Tuesday, December 12, 2006 > Matt, > > The zend_exceptions.c bit seems incorrect. You change +4 to +2 but > there are 4 "text" chars that need to be accounted for there. I am > going over the rest of the patch now. > > Ilia Alshanetsky