Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:74566 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 79192 invoked from network); 28 May 2014 12:40:19 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 May 2014 12:40:19 -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.182 cause and error) X-PHP-List-Original-Sender: dmitry@zend.com X-Host-Fingerprint: 209.85.220.182 mail-vc0-f182.google.com Received: from [209.85.220.182] ([209.85.220.182:44586] helo=mail-vc0-f182.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id FB/39-30361-139D5835 for ; Wed, 28 May 2014 08:40:18 -0400 Received: by mail-vc0-f182.google.com with SMTP id id10so186899vcb.13 for ; Wed, 28 May 2014 05:40:14 -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=av+ncKSYA+DooEY4warW+miClmngQTpKE3jclxnX3qY=; b=F8OvS5nbyG6Dw58N6xZzB61LGmfB8yRBo5OYr9Si03vtJ/IqzFeVSoQyG4lgNcQS1k mdZDnGNnk4ihi8lT86hKdlzhyNuJ6m5YKNbk1R59Ui9Paj6bmhDbH44hbk313bF62D6M 1yWL4QvyEtxF3kgb1QFM7SSatlTr+vCqiZEGW2LgxYDug2FXdDI+oRHHIJnNIFtBGKuV ldFKqfPaUZOhI3VjRPjnp2QvYu9gX91ThSXEiiCXrSNQoFh5PfyPgl+3i1hFm1G6u9ea M6HvMyx5AUKEPZP4m9MDwvrdA5SokohjutM1TKGql3JubnvAaMDcIiHAGlfSyuAqO6Mm uLOQ== X-Gm-Message-State: ALoCoQnk6u+xh/p8aQqMTpvUt23hHr4woZ594IZcdxgoF6dL/2k6oqzmxP9f8D94+5z7keKP0nRmI+hiJQTY+FmZVlQGe/GwA3wAOpTIOKfJfaKdCE5iLTVrHSHb56/0T0LYjIOuZmEa MIME-Version: 1.0 X-Received: by 10.58.126.4 with SMTP id mu4mr34582972veb.0.1401280814370; Wed, 28 May 2014 05:40:14 -0700 (PDT) Received: by 10.52.111.71 with HTTP; Wed, 28 May 2014 05:40:14 -0700 (PDT) In-Reply-To: References: <79B69A20-15AD-4C07-B026-61C2C9DEBBE5@ajf.me> <1400851698.2870.9315.camel@guybrush> Date: Wed, 28 May 2014 16:40:14 +0400 Message-ID: To: Zeev Suraski Cc: Derick Rethans , =?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=047d7b6700af2beaef04fa751d0a Subject: Re: [PHP-DEV] [RFC] Fast Parameter Parsing API From: dmitry@zend.com (Dmitry Stogov) --047d7b6700af2beaef04fa751d0a Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable ~70 functions are in the patch. they selected using profiler feedback from Wordpress home page. Few functions are selected just to test rare argument specifiers (like 'C')= . We may convert few more functions profiling other apps. Thanks. Dmitry. On Wed, May 28, 2014 at 4:24 PM, Zeev Suraski wrote: > Are there specific functions you think we should use it that could give u= s > 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 one= s. > > > > 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; = Stas > 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 affecte= d. > > 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 > > > --047d7b6700af2beaef04fa751d0a--