Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:74478 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 80033 invoked from network); 26 May 2014 07:01:21 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 May 2014 07:01:21 -0000 Authentication-Results: pb1.pair.com smtp.mail=zeev@zend.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=zeev@zend.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain zend.com from 209.85.220.177 cause and error) X-PHP-List-Original-Sender: zeev@zend.com X-Host-Fingerprint: 209.85.220.177 mail-vc0-f177.google.com Received: from [209.85.220.177] ([209.85.220.177:43128] helo=mail-vc0-f177.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 60/92-60353-EB6E2835 for ; Mon, 26 May 2014 03:01:19 -0400 Received: by mail-vc0-f177.google.com with SMTP id hq11so2942823vcb.8 for ; Mon, 26 May 2014 00:01:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:references:from:mime-version:in-reply-to:date :message-id:subject:to:cc:content-type; bh=FlzSBVulmn8Ry/dYeAc/ZdeiTNbGHfY6HMFblCrPP0Q=; b=a/9Rtfnjw1MgJ5cx6xLLaShebF16vSxuCH7I7cwi1825hacLAJatDn5QzB/cpqhovt HkXpBkF3JYgeGUahY912hUXv80we1C8+Ksb7olbpaAq+wARGxMXVe3Hu2b6JUwtz3bLe H6+JG+zYptbrQZXSMevoBmfuRg00IGXrQr1Uh5ZglaJBDRRRT4m0heoKHlsAnrrN5m3h lGh9ALMttMJ1GuS/vbu9Hje7FxxRkvqhL7LA3V+uwjsRZzIm0xcq1K/vtya5itNMQZ+S uJ8zlm/m5Ty5wl2hZkcHb3h48YbvIVklJMUJEmvFomToj/+mMJYrja8dKUD4TeIMtEYT ZKjg== X-Gm-Message-State: ALoCoQlNA7VamuE/McRj9KBnwAxwkN9b3+malTfIHw0ziGm6yHuh5YxHZ/tLb7U3NYmT8e4Q4dmpjeXMS/UXbR2cd6JsyUa++Oc+vmti9x1XxdoAONHmySG6XHRh/1AqWqLw5yWEXvjP X-Received: by 10.58.243.72 with SMTP id ww8mr4817871vec.49.1401087675877; Mon, 26 May 2014 00:01:15 -0700 (PDT) References: Mime-Version: 1.0 (1.0) In-Reply-To: Date: Mon, 26 May 2014 10:01:16 +0300 Message-ID: <-6285448086228171932@unknownmsgid> To: Dmitry Stogov Cc: Xinchen Hui , PHP Internals , Bob Weinand , Stas Malyshev , Andi Gutmans , Nikita Popov Content-Type: multipart/alternative; boundary=047d7bacc3aa38651c04fa4825be Subject: Re: [RFC] Fast Parameter Parsing API From: zeev@zend.com (Zeev Suraski) --047d7bacc3aa38651c04fa4825be Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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/ > --047d7bacc3aa38651c04fa4825be--