Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:37503 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 45089 invoked from network); 6 May 2008 19:45:08 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 May 2008 19:45:08 -0000 Authentication-Results: pb1.pair.com header.from=felipensp@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=felipensp@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 64.233.178.243 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: felipensp@gmail.com X-Host-Fingerprint: 64.233.178.243 hs-out-0708.google.com Received: from [64.233.178.243] ([64.233.178.243:61176] helo=hs-out-0708.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F7/A7-03521-245B0284 for ; Tue, 06 May 2008 15:45:06 -0400 Received: by hs-out-0708.google.com with SMTP id j58so874215hsj.7 for ; Tue, 06 May 2008 12:45:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:cc:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; bh=M2EUoI9SnpFagOg9TV/yIs1FF+feRLWbKNnb8OYjMXU=; b=XM+ieaaugsoXHq6o5aUAxBXLLdF/5/MIyMse2bILw+E/p3L2rd0GpahGJA/dpO4NoqmfleIqUsWlypBRiLS6CkdzragNmjk/yn0DXJiB0BF5g2FdUd6IsrBedSOCkP8Fsr8eScQT5W+ilpc+faAyLhWe7+hpUTMHdKhMDnYqm0I= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:cc:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; b=vOdBoLmxP2OTRg2Ep6/m6Kv6dDWGbhkFmWP2bD/EIcUeNEiW9vgtsr6JWBb8KrUggcaAPf9cLp8gkXEakw7OSlpZJIvC+fyB8vtJ+zTm8opCS3uabqc6vHylJzYXmFZ+Bxsgentbw2SnUE3cxmOJmQDV6bETfTsT8wEBwdV+WHI= Received: by 10.90.101.7 with SMTP id y7mr1588780agb.117.1210103103940; Tue, 06 May 2008 12:45:03 -0700 (PDT) Received: from ?10.0.18.8? ( [157.86.206.62]) by mx.google.com with ESMTPS id 9sm1210983agc.4.2008.05.06.12.45.01 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 06 May 2008 12:45:02 -0700 (PDT) To: Matt Wilmas Cc: internals@lists.php.net In-Reply-To: <01e801c8af82$3ed8bd20$0201a8c0@pc1> References: <013a01c8aec5$b189d650$0201a8c0@pc1> <481F8BCD.30207@lerdorf.com> <1210034790.5744.5.camel@pena> <01e801c8af82$3ed8bd20$0201a8c0@pc1> Content-Type: text/plain; charset=utf-8 Date: Tue, 06 May 2008 16:44:58 -0300 Message-ID: <1210103098.5344.17.camel@felipe> Mime-Version: 1.0 X-Mailer: Evolution 2.10.1 Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] [PATCH] Some string changes/optimizations From: felipensp@gmail.com (Felipe Pena) Hi Matt, about optimization..., do you have any test for comparison? Why, in my crazy test (http://rafb.net/p/ZzQQQP97.html), the actual code is more faster than your patch. real 0m1.156s vs real 0m1.368s (using time command) I'm just curious, i'm not against your patch. Thanks. Em Ter, 2008-05-06 às 09:05 -0500, Matt Wilmas escreveu: > Hi Felipe, all, > > The patches have been updated to fix the failing nowdoc_015.phpt test. > > http://realplain.com/php/string_optimizations.diff > http://realplain.com/php/string_optimizations_5_3.diff > > The problem was that after removing the ST_START_NOWDOC stuff, the > NOWDOC_CHARS pattern wasn't matching on: > > <<<'EOT' > SingleLineOfTextThatMatchesThe_LABEL_Pattern > EOT; > > I updated NOWDOC_CHARS, I think simplifying it a bit and making it more like > HEREDOC_CHARS. (And this made zend_language_scanner.c ~5K smaller.) I > previously tried to change it, and it just hung PHP when scanning a nowdoc > (endless loop being generated somewhere, etc.), so I left it alone. Looking > into it more now, with the new pattern, re2c is messing up (endless loop) > with > > {NOWDOC_CHARS}*{NEWLINE}+{LABEL}";"?[\n\r] > > And I had to change it to > > ({NOWDOC_CHARS}+{NEWLINE}+|{NEWLINE}+){LABEL}";"?[\n\r] > > Though the original should be equivalent... Well, hopefully it's all > working correctly now! > > > - Matt > > > ----- Original Message ----- > From: "Felipe Pena" > Sent: Monday, May 05, 2008 > > > [...] > > Hi Matt, the nowdoc_015.phpt fails in HEAD. > > > > -- > > Regards, > > Felipe Pena. > > > -- Regards, Felipe Pena.