Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:76631 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 5932 invoked from network); 18 Aug 2014 08:01:32 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Aug 2014 08:01:32 -0000 Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.181 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.216.181 mail-qc0-f181.google.com Received: from [209.85.216.181] ([209.85.216.181:64036] helo=mail-qc0-f181.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id FD/81-29636-BD2B1F35 for ; Mon, 18 Aug 2014 04:01:31 -0400 Received: by mail-qc0-f181.google.com with SMTP id x13so4432221qcv.26 for ; Mon, 18 Aug 2014 01:01:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=ChcftGw+VMquJtyPGYXh2fyH4awpSK8TV1jzvgbki5U=; b=psjzf4TSQdOypA0ru435toBQ6OOgUpVUL/yY9LymUjAhzcz1gUZg7QpfvL2dURIDl4 O2VlCSrJNfwmSZOnR8L7GVOox7XzGf3IkcOXSlLyUF1iw3l0FKbrRMzbKxg1MghCRy7s zscG063VwIu4dVV/LJxtw1Rsh4yKxDCYHU9myUSxdZsIwk6zwziQiSTfeyx4F4CdYCX2 96HGFAK+bs347DBNrS1cJqxJTIOHSeb1PdxasmJb6oOo4GsVVuRW7UbNCRcwSQA6gJXi hpijwAk5m6g1X9+UijTU9FFD7uqODzD0kEGiuuvZw1TGBnYqHKzEpIZc4bJ5XiAPxr6A F2dw== MIME-Version: 1.0 X-Received: by 10.224.47.130 with SMTP id n2mr54261304qaf.87.1408348888119; Mon, 18 Aug 2014 01:01:28 -0700 (PDT) Received: by 10.140.24.54 with HTTP; Mon, 18 Aug 2014 01:01:28 -0700 (PDT) In-Reply-To: <53F1B0B2.9030001@php.net> References: <53F1B0B2.9030001@php.net> Date: Mon, 18 Aug 2014 10:01:28 +0200 Message-ID: To: Sebastian Bergmann Cc: PHP internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] [RFC] Introduce Abstract Syntax Tree From: pierre.php@gmail.com (Pierre Joye) On Mon, Aug 18, 2014 at 9:52 AM, Sebastian Bergmann wrote: > Am 18.08.2014 um 09:32 schrieb Dmitry Stogov: >> Can OPcahce always keep AST in shared memory and don't copy it into >> process memory on each request? (ext/opcache/zend_accelerator_util_funcs.c) > > Why would the AST need to be cached? I can imagine optimizations happening during the cache lifetime and not only right on the 1st request/compilation. Having the AST at hand can be handy. Cheers, -- Pierre @pierrejoye | http://www.libgd.org