Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:64134 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 69538 invoked from network); 3 Dec 2012 05:47:23 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Dec 2012 05:47:23 -0000 Authentication-Results: pb1.pair.com smtp.mail=dmitry@zend.com; spf=unknown; sender-id=unknown Authentication-Results: pb1.pair.com header.from=dmitry@zend.com; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain zend.com does not designate 209.85.216.49 as permitted sender) X-PHP-List-Original-Sender: dmitry@zend.com X-Host-Fingerprint: 209.85.216.49 mail-qa0-f49.google.com Received: from [209.85.216.49] ([209.85.216.49:35255] helo=mail-qa0-f49.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F5/00-03565-AEC3CB05 for ; Mon, 03 Dec 2012 00:47:23 -0500 Received: by mail-qa0-f49.google.com with SMTP id r4so1096130qaq.8 for ; Sun, 02 Dec 2012 21:47:19 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:x-gm-message-state; bh=xWag0a5JJtn5wevduM2UpDU1IP2/9lKpPviNpDJkdKE=; b=F35G50Uv9R+Dbdkm3ezPck6FFMYAH3P41dSUQr1CtFXtzgl2nzKS8yTKoUUTV1xKtS T7boA/aVrHx+JLs5M3y7vIlHX7NtqGiB6C2rKkrfPXsa4vIarN/6NLqm/vUctwILqV3R ghjAkTAAz6EF/SSKFls4vFZNObjwHNAo3lxWjt8ugfoP06FWTSjNJvi+81cuRNifGL0d t9fqI+OSEHNow1RWvgc3nF/vTK/vdjrrG9MEvN8xWnyJ9qfsajjNfMV1m15oEaOY4lSR LLZqicLQ3BIjcTAC88IBHWbcYX7EnawP0w/v+Q5jBQfSd7ssxi6XfsS8JHgyeS9xNtjY 0jTQ== MIME-Version: 1.0 Received: by 10.224.185.79 with SMTP id cn15mr15627064qab.14.1354513639582; Sun, 02 Dec 2012 21:47:19 -0800 (PST) Received: by 10.49.74.133 with HTTP; Sun, 2 Dec 2012 21:47:19 -0800 (PST) In-Reply-To: <50B90DA4.606@lerdorf.com> References: <50B90DA4.606@lerdorf.com> Date: Mon, 3 Dec 2012 08:47:19 +0300 Message-ID: To: Rasmus Lerdorf Cc: Derick , jpauli@php.net, Yoram Bar Haim , PHP Internals Content-Type: multipart/alternative; boundary=20cf302ef99c54ad0704cfec4851 X-Gm-Message-State: ALoCoQlHwHQBafgiQwGZUkUahOKzZ8y/gX7d9dQL/2BZEyUQd/5VuZSSWZncZ7TdH4R3McKSv/CMB/qTRS+ixiCu8jvughnYGR1TjIQC/c6Homu77wiFSqYF1E9cqiUlKQI8wgfak220 Subject: Re: [PHP-DEV] execute_data->Ts removing From: dmitry@zend.com (Dmitry Stogov) --20cf302ef99c54ad0704cfec4851 Content-Type: text/plain; charset=UTF-8 Hi Rasmus, I'm glad the patch is not a big problem for APC. BTW: I decided not to commit the patch as is, and implement the similar optimization for CVs first. Otherwise I may need to change the way TMP_VAR accessed twice. I'll probably send the patch for review later today. Thanks. Dmitry. On Fri, Nov 30, 2012 at 11:48 PM, Rasmus Lerdorf wrote: > On 11/30/2012 09:15 AM, Dmitry Stogov wrote: > > Hi, > > > > The NEWS and UPGRADING explains the details. > > > > http://pastebin.com/VC71Y8LV > > > > The patch is big, but actually quite simple. > > I'm going to commit it on Monday or Tuesday (if no objections). > > > > I'm going to look into the similar optimization for CVs, but it's going > to > > be a bit more difficult. > > Looks good to me. I'll commit this change to APC when you commit it: > > Index: apc_zend.c > =================================================================== > --- apc_zend.c (revision 328577) > +++ apc_zend.c (working copy) > @@ -48,7 +48,11 @@ > static opcode_handler_t *apc_original_opcode_handlers; > static opcode_handler_t apc_opcode_handlers[APC_OPCODE_HANDLER_COUNT]; > > +#if PHP_MAJOR_VERSION >= 6 || PHP_MAJOR_VERSION == 5 && > PHP_MINOR_VERSION >= 5 > +#define APC_EX_T(offset) (*EX_TMP_VAR(execute_data, > offset)) > +#else > #define APC_EX_T(offset) (*(temp_variable > *)((char*)execute_data->Ts + offset)) > +#endif > > And there are a couple of extensions that are going to need similar > changes because of this. pecl/optimizer, pecl/inclued, pecl/xhprof, > pecl/operator and xdebug from a quick check. > > -Rasmus > --20cf302ef99c54ad0704cfec4851--