Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:74563 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 71379 invoked from network); 28 May 2014 12:13:13 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 May 2014 12:13:13 -0000 Authentication-Results: pb1.pair.com smtp.mail=dmitry@zend.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=dmitry@zend.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain zend.com from 209.85.220.172 cause and error) X-PHP-List-Original-Sender: dmitry@zend.com X-Host-Fingerprint: 209.85.220.172 mail-vc0-f172.google.com Received: from [209.85.220.172] ([209.85.220.172:47116] helo=mail-vc0-f172.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 28/A7-30361-7D2D5835 for ; Wed, 28 May 2014 08:13:12 -0400 Received: by mail-vc0-f172.google.com with SMTP id ik5so8934827vcb.3 for ; Wed, 28 May 2014 05:13:09 -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=9wu7dnzb6ahbcOI7BKgsm97DriIAg2A8BI93+eymk8U=; b=N966UYxjcdyPLTYb+e8Rt/ZLv32frkEHICReLwhqrPX8ELYGoadeKGJQxlflC+zp3M /od4Y2DZ937Pbje6hMAMJbGCbox6jad2v8zCNpARjTDYwAZQrAfxrLUysTUrlnqcSD+f CDnyUqXf3sNLUWnjCIyWZdTCoRR/tKxUwqmhonNKL8TiNrCnxXrekWlNf+eZYDqlcip2 B6E4EshesVxqoeYfF2H/LUOoTOKLw92rtWjnJBJG0iMkraInd2IQkSuqA3XgZUlS9yrw WbkbcD2TCqp5cl6WRg4ZgVYBAq0z8SX/eBa7RXyhXk4AVOeC/GPaXCSNTs2Zt4YeLk2m JH3w== X-Gm-Message-State: ALoCoQnCM8kL/tV0FRgQod+ysRNdVYSBRZpA8spTHiDo9VOfaw+jutahhfHcHkYG9qZzdINuoeZzR9BazpvnQfbPsfMrIYUe5NfTdQJ6/x/ABPX7ONJ/E28LK7QFynQCPgKQXxPKCz5C MIME-Version: 1.0 X-Received: by 10.220.105.4 with SMTP id r4mr33569909vco.27.1401279189078; Wed, 28 May 2014 05:13:09 -0700 (PDT) Received: by 10.52.111.71 with HTTP; Wed, 28 May 2014 05:13:08 -0700 (PDT) In-Reply-To: References: <79B69A20-15AD-4C07-B026-61C2C9DEBBE5@ajf.me> <1400851698.2870.9315.camel@guybrush> Date: Wed, 28 May 2014 16:13:08 +0400 Message-ID: To: Derick Rethans Cc: =?UTF-8?Q?Johannes_Schl=C3=BCter?= , Andrea Faulds , PHP Internals , Bob Weinand , Stas Malyshev , Zeev Suraski , Xinchen Hui , Andi Gutmans , Nikita Popov Content-Type: multipart/alternative; boundary=089e0122f3324c18eb04fa74bcca Subject: Re: [PHP-DEV] [RFC] Fast Parameter Parsing API From: dmitry@zend.com (Dmitry Stogov) --089e0122f3324c18eb04fa74bcca Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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 --089e0122f3324c18eb04fa74bcca--