Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:74461 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 3077 invoked from network); 23 May 2014 16:26:42 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 May 2014 16:26:42 -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.220.178 cause and error) X-PHP-List-Original-Sender: dmitry@zend.com X-Host-Fingerprint: 209.85.220.178 mail-vc0-f178.google.com Received: from [209.85.220.178] ([209.85.220.178:60011] helo=mail-vc0-f178.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id CD/66-01753-0C67F735 for ; Fri, 23 May 2014 12:26:41 -0400 Received: by mail-vc0-f178.google.com with SMTP id ij19so3190237vcb.9 for ; Fri, 23 May 2014 09:26:38 -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=wOm6H4ZSQLw8jG9jtkpOSQBA8FSLdclVyVurtI0PJww=; b=SnRVsUT1D93xcnDjbbovec+98f1qk87f4/jayDVPJt4hLks4YtNND0SPydrroi9fhd Vw2Bnx28aZi+WCJlnCzTJtwGmO1mV8fikh/hsFEb7ugqgi+NIQLDJu4HGSAgHKbW9KH3 0r64DXEgeP2rAFaNhqVEeNpXrTm5jj3hxMlD0Tg1jt7/Yt75pWvmkpQ6O+E+7CeZ83TJ YLIksk6dyI0RxztfO5hNDTHhs/oObDtdD2yLr9KmcDxpVuFxFJNZEhCijfWHMCN8okIJ vGM5Ufj+HbFUxQ1WSC/9XZTc4AyxtK8Zah1FfMPJLMUZmFNAGMnpUw6jkeroBRpFpni/ 5lmw== X-Gm-Message-State: ALoCoQmEZXzKQ+YIBYASjAUVX+4otq4vuY4F0nDcOKX9F1sq0Trr44FaXK2SGNqIuBIDOWyjlD/WcA7Y7wja+ACjJr+hYzuae2llxYaBj2u3fMqtKG2fVMyN7hEeDMOLm1CIgDhBH37y MIME-Version: 1.0 X-Received: by 10.58.199.226 with SMTP id jn2mr2173278vec.43.1400862397922; Fri, 23 May 2014 09:26:37 -0700 (PDT) Received: by 10.52.111.71 with HTTP; Fri, 23 May 2014 09:26:37 -0700 (PDT) In-Reply-To: References: <79B69A20-15AD-4C07-B026-61C2C9DEBBE5@ajf.me> <1400851698.2870.9315.camel@guybrush> Date: Fri, 23 May 2014 20:26:37 +0400 Message-ID: To: Pierre Joye Cc: Andi Gutmans , Andrea Faulds , Xinchen Hui , Zeev Suraski , PHP Internals , =?UTF-8?Q?Johannes_Schl=C3=BCter?= , Stas Malyshev , Nikita Popov , Bob Weinand Content-Type: multipart/alternative; boundary=047d7bdc9a4c9b904c04fa13b1f7 Subject: Re: [PHP-DEV] [RFC] Fast Parameter Parsing API From: dmitry@zend.com (Dmitry Stogov) --047d7bdc9a4c9b904c04fa13b1f7 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable return to the land :) PHP is used by millions people who never looked into its code. We are working for them BTW: 1% + 1% =3D 2%, and we already came to 30% :) may be you may propose something that may increase performance at once? Dmitry. On Fri, May 23, 2014 at 8:15 PM, Pierre Joye wrote: > > On May 23, 2014 5:58 PM, "Dmitry Stogov" wrote: > > > > This patch is connected with Zend only in a way, that I worked on it > during last days (it's even not my idea). > > but once I saw the idea I saw how it may be useful. I really don't > understand you attitude to us. > > We are working hard to make a real big step forward... > > > > 2.5% speedup on real-life is not a good gain? where do you live? :) > > In a world where clean code base and easy maintenance are better than a > couple % performance gain. :) > > > Thanks. Dmitry. > > > > > > > > > > On Fri, May 23, 2014 at 7:28 PM, Pierre Joye > wrote: > >> > >> Hi Dmitry, Bob, > >> > >> On Fri, May 23, 2014 at 3:28 PM, Johannes Schl=C3=BCter > >> wrote: > >> > On Fri, 2014-05-23 at 13:52 +0100, Andrea Faulds wrote: > >> >> On 23 May 2014, at 12:36, Dmitry Stogov wrote: > >> >> > >> >> > Please take a look at https://wiki.php.net/rfc/fast_zpp > >> >> > > >> >> > Thanks. Dmitry. > >> >> > >> >> This looks like a great idea. I like how it=E2=80=99s not only fast= er, but it > >> >> seems to be more readable. > >> > > >> > More readable? - I feel exactly the opposite. Yes, we get rid of voi= d > >> > pointers but use a pattern easy to understand. This looks like macro > >> > hell. > >> > >> I feel the same way. I very much the idea of rewamping zpp, it is a > >> long due taks. > >> > >> However the way it is implemented in this RFC is not something I would > >> like to work with for a decade or so. The performance gain is also not > >> sufficient enough to justify it. > >> > >> I think we should think more about other options (no matter how long > >> you spent discussing options before posting this RFC). I am sure we > >> can come with other solutions which may be cleaner and also provide > >> some performance improvements. > >> > >> > If we break APIs anyways: Can't we go for C++ which allows providing > >> > high level APIs with high performance ... > >> > >> Yes, C++ would in this case provides almost all we need for > >> implementing parameter management in a clean and efficient way. Not > >> sure if it is desired tho'. > >> > >> By the way, please do not ask me to come with code and cases to valid > >> my comment here, I won't. At least not until things get clarified > >> about we wish. The last thing we need is yet another Zend vs World > >> about that :) > >> > >> Cheers, > >> -- > >> Pierre > >> > >> @pierrejoye | http://www.libgd.org > > > > > --047d7bdc9a4c9b904c04fa13b1f7--