Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:65836 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 67647 invoked from network); 14 Feb 2013 16:11:45 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Feb 2013 16:11:45 -0000 Authentication-Results: pb1.pair.com smtp.mail=morrison.levi@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=morrison.levi@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.177 as permitted sender) X-PHP-List-Original-Sender: morrison.levi@gmail.com X-Host-Fingerprint: 209.85.214.177 mail-ob0-f177.google.com Received: from [209.85.214.177] ([209.85.214.177:53052] helo=mail-ob0-f177.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 97/C1-58622-1CC0D115 for ; Thu, 14 Feb 2013 11:11:45 -0500 Received: by mail-ob0-f177.google.com with SMTP id wc18so2630292obb.36 for ; Thu, 14 Feb 2013 08:11:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=l+M904ojPzSrXiMW1kCJOkfsKQ5IFvDGYMvH7RA1C7g=; b=vn51tWc1HPuYi821lnOTdMJjqg/9tTJVNkANQaym6YtTE9vztttXgaDOuOs+9fl9bo YWw3KtXIA6EwRs1DJiW8jEgsi6xCJzIhMPEjFlbkD1sl4Joyb3iC22KyP+ZGki7oUXhX AmAXWLnxDh7vgjnT6XKLdphp87Fw/HMqNM3zxrr6lfBUD0YY9CndutBtX5hjoadeWuaF l5xoaGoCYTLddIhtCSxEEQBJ8B3KkgqYFyHR+HP9BLEs7n1nuV1IJYKsmBERkDt+3CNN qj8YlxtgL/HV2Dgc6K0lMjWJlxqgEzUt6uMACJwScnGWaOcG+ggioB0X/akpx86ldVNE R6sg== MIME-Version: 1.0 X-Received: by 10.60.31.113 with SMTP id z17mr19507808oeh.37.1360858303002; Thu, 14 Feb 2013 08:11:43 -0800 (PST) Received: by 10.76.131.77 with HTTP; Thu, 14 Feb 2013 08:11:42 -0800 (PST) In-Reply-To: References: <511BFC81.8020400@oracle.com> <7de2703f77537a47b457c4479a19ac3a@mail.gmail.com> Date: Thu, 14 Feb 2013 09:11:42 -0700 Message-ID: To: Nikita Popov Cc: Zeev Suraski , Christopher Jones , PHP internals Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] Zend Optimizer+ Source Code now available From: morrison.levi@gmail.com (Levi Morrison) On Thu, Feb 14, 2013 at 9:02 AM, Nikita Popov wrote: > > On Thu, Feb 14, 2013 at 4:21 PM, Zeev Suraski wrote: > > > > - Should the name reflect the code's main purpose (op-code caching), > > > and allowing a future use of "optimizer" for a more sophisticated > > > optimizer implementation? Or do you see Optimizer+ being the > > > framework for such optimizations? > > > > O+ does perform some optimizations in addition to caching code, in a pretty > > sophisticated manner actually (block optimizations). Optimizations - which > > can be expensive to carry out - are definitely a good fit with an opcode > > cache, that ensures that you wouldn't have to do these optimizations more > > than once. I'm obviously subjective but I think the name Optimizer+ does a > > good job at suggesting that it's both an Optimizer but also something else. > > Perhaps we should call it OptiCache? :) > > > > If this will go into PECL first then I see no reason to change the name > from Optimizer+. If this will go into PHP then it shouldn't need a name at > all, should it? It could just be "opcode cache" (--enable-opcode-cache / > --disable-opcode-cache). That seems more descriptive to me then some fancy > name like "Optimizer+". Regarding the optimizations it contains, imho those > are a separate concern and if Optimizer+ goes into core both aspects should > be cleanly separated (and you should be able to enable/disable them > separately). The optimizations are not directly related to caching. Caching > makes them more viable for web requests, but as someone already pointed out > the optimizations are also useful on CLI, where compile times just aren't a > concern anyway (but run times can be). I usually don't chime in with 'me too' comments, but I think Nikita summed it up nicely.