Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:86858 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 54552 invoked from network); 25 Jun 2015 06:31:01 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Jun 2015 06:31:01 -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.213.179 as permitted sender) X-PHP-List-Original-Sender: dmitry@zend.com X-Host-Fingerprint: 209.85.213.179 mail-ig0-f179.google.com Received: from [209.85.213.179] ([209.85.213.179:33678] helo=mail-ig0-f179.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 44/20-52307-420AB855 for ; Thu, 25 Jun 2015 02:31:00 -0400 Received: by igbqq3 with SMTP id qq3so7718874igb.0 for ; Wed, 24 Jun 2015 23:30:57 -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=D4EKKDmeh8TP/w0CLFWgRUIF3reEzaVbubdWr5tc1Kc=; b=L1vrkbeEIqlI6JxZbCswS8X9tFJje7NkeB3sUqDCj2GmcS5IfCUFtMwXIamfX1cmax 6moEjQ059kjBWfRWsH5X7HtzqUCACoA1nqx4FlJAiu/M7GQ2Qg8iAskQ6QjJY1HN4MT6 icsRuWWwyBb7kjp1veRXdP2DyoGaZN4+I28G8GvT8t5DsubjRrUfr4HbenXktGC0o1Xb YOnbLnGyfG299TqEMkp0hItrnX0gE9Am5qo9LdA/G6w3nabA1tMfC+Bh5PSjXLJDkSn4 weFHd86Xm1sWc2UYpaalMHMCC3kFejxvqTva+6m23K3uirLPxj/dHnNhzYijOFy1RhMn UCJQ== X-Gm-Message-State: ALoCoQnOSa6XnupoazsLXHR0Lb6G2Al7aa4SJ9fwqUIGb03GXDxO6NLOrHVC/881ldeFXpwqEsg7o4DDwVJFwgY2kr+vYJ6/9BJ03tos+34FfRH2pl4UZ8iEwB18i08QEAOrb7DmNI51IgdYrcXSpwCZ45cPEWd0dR4LJD++TIEShbKV5ptKibk= MIME-Version: 1.0 X-Received: by 10.107.133.38 with SMTP id h38mr57470225iod.47.1435213857544; Wed, 24 Jun 2015 23:30:57 -0700 (PDT) Received: by 10.50.51.161 with HTTP; Wed, 24 Jun 2015 23:30:57 -0700 (PDT) In-Reply-To: References: Date: Thu, 25 Jun 2015 09:30:57 +0300 Message-ID: To: Yasuo Ohgaki Cc: Ferenc Kovacs , "internals@lists.php.net" Content-Type: multipart/alternative; boundary=001a113ff67c27ee3e051951c40b Subject: Re: [PHP-DEV] Move to Fast ZPP? From: dmitry@zend.com (Dmitry Stogov) --001a113ff67c27ee3e051951c40b Content-Type: text/plain; charset=UTF-8 On Wed, Jun 24, 2015 at 1:08 PM, Yasuo Ohgaki wrote: > Hi Dmitry, > > On Wed, Jun 24, 2015 at 7:04 PM, Dmitry Stogov wrote: > >> We should NOT use it everywhere. It'll lead to code bloat. > > > OK. Thank you. > I'll use it only for functions called many times. e.g. pg_fetch_*(). > Should I use #ifndef FAST_ZPP? > > I think, ZPP overhead of pg_fetch() is insignificant in comparison to DB access. I didn't change API for ext/mysql* only for really often used functions. Before optimizing something, you'll need to check if you really have a bottleneck. Run some application with callgrind, then check how many times ZPP called from zip_pg_fetch() and its relative cost. If it less than 0.05%, it makes no sense to do anything. Over-optimization may make more harm than benefits. Thanks. Dmitry. > Regards, > > -- > Yasuo Ohgaki > yohgaki@ohgaki.net > --001a113ff67c27ee3e051951c40b--