Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:77065 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 58194 invoked from network); 5 Sep 2014 07:40:49 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Sep 2014 07:40:49 -0000 Authentication-Results: pb1.pair.com smtp.mail=dmitry@zend.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=dmitry@zend.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 209.85.220.173 as permitted sender) X-PHP-List-Original-Sender: dmitry@zend.com X-Host-Fingerprint: 209.85.220.173 mail-vc0-f173.google.com Received: from [209.85.220.173] ([209.85.220.173:47604] helo=mail-vc0-f173.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 16/70-55384-00969045 for ; Fri, 05 Sep 2014 03:40:48 -0400 Received: by mail-vc0-f173.google.com with SMTP id im17so11867715vcb.4 for ; Fri, 05 Sep 2014 00:40:45 -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=rBARTCfoqU53OKDlq9HEA+JSK0kucAMB1hczryrGu2A=; b=PAaZIBtOI/xN9TOBmFEmU8Vk3rWxNC4h2LMxoK9rjRT6P9bJs9Z/zgDLP3MGSg3tYK GvkK+IeZAown1cvUb94W2p8Aq6MTeXxm8OY0qsAYmxqYb7T3RwgiyI/smn9g6q0rxQ59 66Y41vfl0nKbY4BoSF2zh6vyGYVSrwU0mDxF42adG0lzfNXTfjnOhk48hDu+hrJ39cpR kllRojB1Ic3GB3aveUdSVdSOCawgG49Yq856JugV5oyH1gXdfEVLmeh9y+wIKzYA9TsU flaMCMOZVUcpFWBFm+HQRDI7a7Tzjl4M/sqXcU8NMQKBjaD8hwpfTROaqpY/nKLWdb2v 5uUA== X-Gm-Message-State: ALoCoQmC776oxMSwg33VmiOQuyshE0003/MdkVMANDvJvjgyV326X8hr6iSgRYYc5iMLYjbz7WcObhyBggfx6erSts1r9f9y8QHl3aeI7jF3PdNlpSQSE4ipkLDdTdjPexK1TQTLwJ61FPQmcvSaPVHCgNemCj88mw== MIME-Version: 1.0 X-Received: by 10.220.97.138 with SMTP id l10mr8840675vcn.25.1409902845711; Fri, 05 Sep 2014 00:40:45 -0700 (PDT) Received: by 10.52.110.170 with HTTP; Fri, 5 Sep 2014 00:40:45 -0700 (PDT) In-Reply-To: References: <54091826.6050602@sugarcrm.com> Date: Fri, 5 Sep 2014 11:40:45 +0400 Message-ID: To: Pierre Joye Cc: Stas Malyshev , Bob Weinand , PHP internals Content-Type: multipart/alternative; boundary=001a11c1d2cc49717705024c960d Subject: Re: [PHP-DEV] Re: Fast zend_parse_parameters API From: dmitry@zend.com (Dmitry Stogov) --001a11c1d2cc49717705024c960d Content-Type: text/plain; charset=UTF-8 most of the functions converted to FAST_ZPP were collected by profiling or real life apps. These functions spent significant part of the time in zend_parse_parameters() because they are short themselves or because they are called very often. few functions were added to test some "exotic" type specifiers (like "C" or "L"). Thanks. Dmitry. On Fri, Sep 5, 2014 at 11:20 AM, Pierre Joye wrote: > On Fri, Sep 5, 2014 at 8:45 AM, Dmitry Stogov wrote: > > It's already done for strlen() - ZEND_STRLEN opcode (and few other > > functions). > > But it make no sense to convert all useful functions into opcodes. > > We need an ability of fast parameter parsing anyway. > > Got that, but hard to say for which functions. Right now it is used > for almost everything, reflection, pcre, etc. I can hardly think about > why a faster zpp may impact these functions. Do you have an exhaustive > list? > > I am not saying it is not good to rethink zpp but if we do then the > gain from a usability point of view must be much better. I do not see > that now (yes, subjective but...). > > Cheers, > -- > Pierre > > @pierrejoye | http://www.libgd.org > --001a11c1d2cc49717705024c960d--