Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:74481 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 83871 invoked from network); 26 May 2014 07:09:57 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 May 2014 07:09:57 -0000 Authentication-Results: pb1.pair.com header.from=dmitry@zend.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=dmitry@zend.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain zend.com from 209.85.128.178 cause and error) X-PHP-List-Original-Sender: dmitry@zend.com X-Host-Fingerprint: 209.85.128.178 mail-ve0-f178.google.com Received: from [209.85.128.178] ([209.85.128.178:55851] helo=mail-ve0-f178.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D0/63-60353-4C8E2835 for ; Mon, 26 May 2014 03:09:56 -0400 Received: by mail-ve0-f178.google.com with SMTP id sa20so8756370veb.23 for ; Mon, 26 May 2014 00:09:54 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=sqRt4ZUqUfMgDwxs/hRFhoqjVuWdWhWmRx4iIqyI+Is=; b=ex5yqB4zPjThuecE+RjDviCPmGkuUayavNplLjqW8oFcJbZnlFNSC+8mhS+clFR1L4 RUbPUDuff6n24hhdMD1YcjtKoqHTq3+lvEYqnLA3nZJQxx06uqDw3p7NcTn804cYbq+m mQpPnHAXSN7rcnCG0UlvhklVLhN7E2x5vBNquizM3w3oon3REUm8m/pz0n6kqAGYQ+KJ UQTb7R3LBxjiCeFamNFtAiuw6ishxIjkpgvfiGzsBUE4iqK0J2JXTw9RvRHW6YdBXq0G iVqPETldRTwQyi52wTcwL8UCv8wUhNd4UX75agXwfzc0QbbWOo8FxYTEoyWtaN9W0ywt va4g== X-Gm-Message-State: ALoCoQna7l6Q+HX8vOt/titznDPgv5DPvqLGZc6X5INJjisa5jAVE5mxaC10M0Niwdih2oMNgxSpfzYN2Ci+2phYyoPp7LR7C1IkkWTQFJJcrTm3bbpLzut8PFlHc9jmjWy9HyzOshkr MIME-Version: 1.0 X-Received: by 10.220.98.143 with SMTP id q15mr6048945vcn.38.1401088193888; Mon, 26 May 2014 00:09:53 -0700 (PDT) Received: by 10.52.111.71 with HTTP; Mon, 26 May 2014 00:09:53 -0700 (PDT) In-Reply-To: <-6285448086228171932@unknownmsgid> References: <-6285448086228171932@unknownmsgid> Date: Mon, 26 May 2014 11:09:53 +0400 Message-ID: To: Zeev Suraski Cc: Xinchen Hui , PHP Internals , Bob Weinand , Stas Malyshev , Andi Gutmans , Nikita Popov Content-Type: multipart/alternative; boundary=001a11c1da06189d0f04fa4844d3 Subject: Re: [RFC] Fast Parameter Parsing API From: dmitry@zend.com (Dmitry Stogov) --001a11c1da06189d0f04fa4844d3 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I personally see it more readable than "sZ|l", but of course, other people may think differently. I would be glad if someone would propose something useful in reasonable time. Thanks. Dmitry. On Mon, May 26, 2014 at 11:01 AM, Zeev Suraski wrote: > To be perfectly honest, I tend to agree that the readability issues with > this proposal make it a bit difficult to digest. And I'm not taking a 2.= 5% > real world performance gain lightly - it's huge. > > I think we need to consider other alternatives as code readability and > maintainability are important factors to consider, not just performance..= . > > Zeev > > On 26 =D7=91=D7=9E=D7=90=D7=99 2014, at 08:39, Dmitry Stogov wrote: > > I would be glad to see proposals from Hannes and Johannes, but we also > need to move phpng forward, and I wouldn't like to spend on this too much > time. > > Our proposal is mainly about speed (as well as the main phpng goal). > We identified yet another bottleneck and eliminated it. > Changes in readability and compile-time type checking are side effects of > implementation. > > Thanks. Dmitry. > > > On Sat, May 24, 2014 at 4:50 PM, Xinchen Hui wrote: > >> Hey: >> >> >> On Fri, May 23, 2014 at 7:36 PM, Dmitry Stogov wrote: >> > Please take a look at https://wiki.php.net/rfc/fast_zpp >> >> >> It's really a great improvement. >> >> zend_parse_parameters is too heavy, and to me: >> >> Z_PARAM_STR() is obviously readable than >> zend_parse_parameter("s" /* what the hell s means here? */,) >> >> and the performance gain is also very significant .. >> >> actually, I thought about somethings like that.. but this patch >> is better... >> >> and these new APIs didn't break any APIS, just provides a more >> fast choice... >> >> I really don't understand why you guys think it not good? >> >> >> >> thanks >> > >> > Thanks. Dmitry. >> >> >> >> -- >> Xinchen Hui Laruence >> Consultant at Zend >> http://www.laruence.com/ >> > > --001a11c1da06189d0f04fa4844d3--