Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:84032 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 29155 invoked from network); 27 Feb 2015 17:31:16 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Feb 2015 17:31:16 -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.176 as permitted sender) X-PHP-List-Original-Sender: dmitry@zend.com X-Host-Fingerprint: 209.85.220.176 mail-vc0-f176.google.com Received: from [209.85.220.176] ([209.85.220.176:60454] helo=mail-vc0-f176.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 51/0E-32582-2E9A0F45 for ; Fri, 27 Feb 2015 12:31:15 -0500 Received: by mail-vc0-f176.google.com with SMTP id la4so6777375vcb.7 for ; Fri, 27 Feb 2015 09:31:12 -0800 (PST) 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=3eO2wulk3eZ0Rj0OldqAP8VHntvtg4a87ZMBIqM3F7k=; b=FGf1bqToAODn0LUXB5rnEc2haPglYKOW/finiEZwEJD02bQR0fgSvPMVq6+PELAc/p 0ma28H26qZquCRSB3CEdvigBkSKKqhP1m6fB8Z4/svyyEUaLV20JjN3he93S1N+gHtnb mTQKoxZhiZ5+DsQ+eCgqgeSbV5IAH0kcBHJR9uqiIgqtV2lfGESjQevvYOHNWut79OR2 /X4T6rM8aisZjaFSs6+XS99DfQe/sV99rNTDAFsbSd2dsOusNaAqKDIDKOE9AjCf2sjj 75pjVpnAtMux+vyj1HQH9jJrCf4/KaAbK/dSfpMsJNwAFi8d+AN/YKb4H915MSx9ezhV g7xg== X-Gm-Message-State: ALoCoQmvfecTBSj08r83yA/YMCr0F82cYfoRDFgD7BYHqHLLCfJ0qwjh1DTuiASrf4aWJpL64YoWoJqT1gwnyZvEb9Dp/fLlG2XAb9yC+pqMCaPQHMmJ3sW6yg3pHtqcem7KmkyorVokpHj/segM7ooyTu+7gey4Wg== MIME-Version: 1.0 X-Received: by 10.52.134.141 with SMTP id pk13mr5060689vdb.5.1425058272083; Fri, 27 Feb 2015 09:31:12 -0800 (PST) Received: by 10.52.113.231 with HTTP; Fri, 27 Feb 2015 09:31:11 -0800 (PST) In-Reply-To: References: <54F08FF3.3040404@seld.be> Date: Fri, 27 Feb 2015 21:31:11 +0400 Message-ID: To: Anthony Ferrara Cc: Jordi Boggiano , PHP Internals Content-Type: multipart/alternative; boundary=bcaec52bf2d9179c730510153c3a Subject: Re: [PHP-DEV] Re: Zend JIT Open Sourced From: dmitry@zend.com (Dmitry Stogov) --bcaec52bf2d9179c730510153c3a Content-Type: text/plain; charset=UTF-8 On Fri, Feb 27, 2015 at 7:30 PM, Anthony Ferrara wrote: > Dmitry, > > > > It's not a single request cycle. JIT integrated into opcache, it compiles > > php script(s) of first access and stores code in shared memory. > > On following requests precompiled code is executed directly from shared > > memory. > > > > - The first request may be extremely slow (few minutes) > > That sounds more along the lines of AOT like I did with Recki rather > than a true JIT (which compiles when a function is called). > > Judging from the jit_init() function, it appears like you're compiling > the entire codebase ahead of time. > > Is that correct? > Right now it compiles script (php file) at once. So yes, our JIT uses some kind of AOT approach, but completely transparently for the rest of PHP. We also tried few different approaches to collect formation about hot functions and generate code only for them. Unfortunately, this didn't change the picture. Thanks. Dmitry. > > Anthony > --bcaec52bf2d9179c730510153c3a--