Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:74565 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 76836 invoked from network); 28 May 2014 12:24:47 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 May 2014 12:24:47 -0000 Authentication-Results: pb1.pair.com header.from=zeev@zend.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=zeev@zend.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain zend.com from 209.85.128.172 cause and error) X-PHP-List-Original-Sender: zeev@zend.com X-Host-Fingerprint: 209.85.128.172 mail-ve0-f172.google.com Received: from [209.85.128.172] ([209.85.128.172:58107] helo=mail-ve0-f172.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 10/E8-30361-C85D5835 for ; Wed, 28 May 2014 08:24:46 -0400 Received: by mail-ve0-f172.google.com with SMTP id oz11so12303759veb.31 for ; Wed, 28 May 2014 05:24:41 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:references:in-reply-to:mime-version :thread-index:date:message-id:subject:to:cc:content-type; bh=xlIlwkZG9U7L+dCKeE4SSdnoniEkQNSI0aGWGPQ7JPc=; b=dcSWT060MqGXig3OB3/OOzwlev5S/qEpXIzrf6EIwKswaCtRO0saNicFq+b+2VVfW3 A3h7NMwpTPM28p6ZknPZ5XodNky3CQDARS+AEa5N0IXz+QUXrM2KFeRi2fL2fqrnAQVd 0s07vXtrlXZTOYezQZZ2DwUS/gt1Y6QDGkyHbEuha8DDLqVEbJmOZE0MlHkbgbXOYbrM x3nwuyfUZf6j+8ndA2ReYalSkvYpvTfLpQoDIb+2Yo4BXgLQsXTu31dFGLbrjjwC+fWx 5cr3vOTf1aYdHaBDHsHgGjtbxN4JGl/OAoEtaAC7PeEU/Bz6bl93u/p8wvo/L9fd4rdS SO1g== X-Gm-Message-State: ALoCoQnykjXJbJfd2REtt/WRZQGhtgZYXpc9zxLMnbRhLDyQ1hw1R0B1oUn7yCEa7427ENsgTt8XpkONv9B8mypeDAiPU4OFu67BpBdYYjI9qMZ/IFLjuH7fRriXeiEFWdwWUbuzvEvS X-Received: by 10.58.29.76 with SMTP id i12mr458974veh.67.1401279881498; Wed, 28 May 2014 05:24:41 -0700 (PDT) References: <79B69A20-15AD-4C07-B026-61C2C9DEBBE5@ajf.me> <1400851698.2870.9315.camel@guybrush> In-Reply-To: MIME-Version: 1.0 X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQLISQrsk8i2VcNg8ucmWRPPETiFcgHk0YpBAawlHKIB63UBsQKLrplnmSQMZ8A= Date: Wed, 28 May 2014 15:24:40 +0300 Message-ID: To: Dmitry Stogov , Derick Rethans Cc: =?UTF-8?Q?Johannes_Schl=C3=BCter?= , Andrea Faulds , PHP Internals , Bob Weinand , Stas Malyshev , Xinchen Hui , Andi Gutmans , Nikita Popov Content-Type: multipart/alternative; boundary=047d7b6dc7f29167cc04fa74e51b Subject: RE: [PHP-DEV] [RFC] Fast Parameter Parsing API From: zeev@zend.com (Zeev Suraski) --047d7b6dc7f29167cc04fa74e51b Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Are there specific functions you think we should use it that could give us a 80/20 gain? I didn=E2=80=99t think of it as an optimization we=E2=80=99d only use in = =E2=80=98sensitive=E2=80=99 functions, but about wholesale migration from the current APIs to new ones. Zeev *From:* Dmitry Stogov [mailto:dmitry@zend.com] *Sent:* Wednesday, May 28, 2014 3:13 PM *To:* Derick Rethans *Cc:* Johannes Schl=C3=BCter; Andrea Faulds; PHP Internals; Bob Weinand; St= as Malyshev; Zeev Suraski; Xinchen Hui; Andi Gutmans; Nikita Popov *Subject:* Re: [PHP-DEV] [RFC] Fast Parameter Parsing API This API was designed to solve the existing bottleneck (5% CPU time lose). It's not proposed to be used in all functions, only in few really affected. Anyone may have their own opinion about readability (someones like Perl, others Ada). I appeal to think not about subjective readability, but about the cost of ownership for @internals and PHP users. Thanks. Dmitry. On Wed, May 28, 2014 at 3:49 PM, Derick Rethans wrote: On Fri, 23 May 2014, 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 faster, = but > > it seems to be more readable. > > More readable? - I feel exactly the opposite. Yes, we get rid of void > pointers but use a pattern easy to understand. This looks like macro > hell. I don't find it more readable either. From a single line, it goes to 7, and what if there are three different zpp calls (like in https://github.com/php/php-src/blob/master/ext/date/php_date.c#L4393) ? I know the old API is not going away, but I'm not just sure about this one... > If we break APIs anyways: Can't we go for C++ which allows providing > high level APIs with high performance ... no :-) cheers, Derick -- http://derickrethans.nl | http://xdebug.org Like Xdebug? Consider a donation: http://xdebug.org/donate.php twitter: @derickr and @xdebug Posted with an email client that doesn't mangle email: alpine --047d7b6dc7f29167cc04fa74e51b--