Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:74474 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 69421 invoked from network); 26 May 2014 05:40:00 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 May 2014 05:40:00 -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.128.182 cause and error) X-PHP-List-Original-Sender: dmitry@zend.com X-Host-Fingerprint: 209.85.128.182 mail-ve0-f182.google.com Received: from [209.85.128.182] ([209.85.128.182:51658] helo=mail-ve0-f182.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 22/90-60353-BA3D2835 for ; Mon, 26 May 2014 01:39:57 -0400 Received: by mail-ve0-f182.google.com with SMTP id sa20so8712198veb.41 for ; Sun, 25 May 2014 22:39:53 -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=Ge4vl/34dI7kRTu93fHF8u95NTOeGyqgdqRxAysaNKc=; b=cc172DeyjCS09LyQPgEMdQUPdj1NNmHC6B+FggN5L9sI3qoGQJbo4XU52I2VntJ0R8 jbJyB2qcv6BRgSp+8AlELIPHF8zP8qRnKzwvlBHYoXquQTaV5khDtZ/H9B2x2h34MvHK fdn0MIGCIHYNkej2MzihvR2ffvcc18yavGct1GHioZoqLfnVsgUJXvsVnmQUR6gXXAt2 2lEvTRoEcZ78AK1ykOjlsDuVV4cjjKk/75wWyBNuM4RqCKQvU6M/5AZuC1YkRLQoOiQn YHF+WMYsoXQPOm4JK3UxKG21aYnFsCkuQJs9ebXdeEwS17Xs/opVsd0Bxm7Qvgleuwq1 LrKg== X-Gm-Message-State: ALoCoQmhJyjPkjHYjhL6AfywAFjdKe6ofU1OsAmZBTS7huV818DSX+2D6Jvdwq/OEnXWlUVbcza1//7D4LaG4+cdHhptf4LnHZ6kc1CopHMaSFPBLFlcrLUH8tE0uuiHBSplu17skV4y MIME-Version: 1.0 X-Received: by 10.52.147.170 with SMTP id tl10mr16454036vdb.14.1401082790992; Sun, 25 May 2014 22:39:50 -0700 (PDT) Received: by 10.52.111.71 with HTTP; Sun, 25 May 2014 22:39:50 -0700 (PDT) In-Reply-To: References: Date: Mon, 26 May 2014 09:39:50 +0400 Message-ID: To: Xinchen Hui Cc: PHP Internals , Bob Weinand , Stas Malyshev , Zeev Suraski , Andi Gutmans , Nikita Popov Content-Type: multipart/alternative; boundary=bcaec52e655f0f03bd04fa470223 Subject: Re: [RFC] Fast Parameter Parsing API From: dmitry@zend.com (Dmitry Stogov) --bcaec52e655f0f03bd04fa470223 Content-Type: text/plain; charset=UTF-8 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/ > --bcaec52e655f0f03bd04fa470223--