Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:79319 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 7572 invoked from network); 30 Nov 2014 10:14:51 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Nov 2014 10:14:51 -0000 Authentication-Results: pb1.pair.com header.from=dmitry@zend.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=dmitry@zend.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 209.85.220.180 as permitted sender) X-PHP-List-Original-Sender: dmitry@zend.com X-Host-Fingerprint: 209.85.220.180 mail-vc0-f180.google.com Received: from [209.85.220.180] ([209.85.220.180:38287] helo=mail-vc0-f180.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F0/00-07458-A1EEA745 for ; Sun, 30 Nov 2014 05:14:51 -0500 Received: by mail-vc0-f180.google.com with SMTP id im6so3933425vcb.11 for ; Sun, 30 Nov 2014 02:14:48 -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=VTLYbW3N4HaCQQorxfSPS0EDb88rA6/j8VmyLjNsPgI=; b=hZLVAhzLJyZ5eYFj9m4r6MM86ggo4GMwgg7L42PoH7RkF6+LX1FonANDg1W6WSgZMO EVecg4Anwlv+6IjVLSWo5aaa2BWTo6y39/s0AucaJwXlLGMNHoKW4WDh61ZaPRbghyZQ JNp7xm5Y3qB106JBk9MW645uCM2pnhBKkC3t4SGpWDBHIyF72oY2wvFPcoS/WCfIpWO+ LOiGTCXAsyXiG9Txdz3+flwAveqOLBVFcGBtJRVhwbnBZheMyfsZyosEN9eHsAbVh96Z Z13b4jMxABRZwz6Pt74vg1gykFqwYI3RAcP3Uyo7cyVLRJQgOvWuuT72TVZ3S7Lc/NvI w2Gw== X-Gm-Message-State: ALoCoQkulVgiC8zU5+QNJkDU+ibr+IvTHK8BnZ+SAARNGXz3q9rDjTJM+oz8IIg/ie03W1jp9rArdcwQ/CXe4KakMy8kTAVbrctSjQt9fbAAl9husfMlY2ZdDdQkkcDv7y0QBn3kQvFHnmox25urOzE6DIFdssoEdw== MIME-Version: 1.0 X-Received: by 10.52.10.198 with SMTP id k6mr10534918vdb.38.1417342488409; Sun, 30 Nov 2014 02:14:48 -0800 (PST) Received: by 10.52.176.231 with HTTP; Sun, 30 Nov 2014 02:14:48 -0800 (PST) In-Reply-To: References: Date: Sun, 30 Nov 2014 14:14:48 +0400 Message-ID: To: Ferenc Kovacs Cc: PHP Internals , Matteo Beccati , Nikita Popov , Xinchen Hui Content-Type: multipart/alternative; boundary=20cf30334e258c0f4f050910c35c Subject: Re: [PHP-DEV] Re: EX(scope) removing From: dmitry@zend.com (Dmitry Stogov) --20cf30334e258c0f4f050910c35c Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Sorry, I'll try to fix it on Monday. is it a compilation problem, or how can reproduce it? Thanks. Dmitry. On Sat, Nov 29, 2014 at 1:01 AM, Ferenc Kovacs wrote: > 2014.11.28. 9:24 ezt =C3=ADrta ("Dmitry Stogov" ): > > > > > On Fri, Nov 28, 2014 at 7:33 AM, Xinchen Hui wrote= : > > > > > Hey: > > > > > > On Fri, Nov 28, 2014 at 1:27 AM, Dmitry Stogov > wrote: > > > > Hi, > > > > > > > > I'm working on call/return sequence optimization. As part of this > work > > > I'm > > > > minimizing the size of call frame (zend_execute_data) and number of > > > > read/write operations on call/return. > > > > > > > > Could you please take a look into the patch that removes EX(scope) > > > > https://gist.github.com/dstogov/5ad50d582346385d587e > > > > > > > committed. > > > > > All phpt tests are passed, but I'm not completely sure about one line= - > > > > > > > > https://gist.github.com/dstogov/5ad50d582346385d587e#file-ex_scope-05-dif= f-L193 > > > > > > > > On the other hand I can't imagine what it may break. > > > neither do I. > > > > > > > > > > > Matteo, can you please run your test suites with this patch. > > > > > > > > PS: I'm also going to: > > > > - pack EX(num_args) into reserved space of EX(This) > > > > > > > done. > > > > > > > > - try to get rid of EX(frame_info) > > > > > > > done. > > > > > > > > - try to merge EX(called_scope) and EX(This). Only one of them > matters. > > > > - try to replace zval EX(This) with a pointer to zend_object > EX(object) > > > > > > Hmm, EX(This) is not like EX(object), it will be accessed by vm > > > handler: get_obj_zval_ptr_unused > > > > > > it suppores to return a zval * there. if EX(This) became a zend_objec= t > > > *, then we may face different handlers for IS_UNUSED and other types > > > :< > > > > > > > Yes, I know. After the latest changes it doesn't make a lot of sense to > > replace ZVAL with ZEND_OBJECT*, because other data is already packed in= to > > the same ZVAL and it won't save any memory. > > > > Also zend_execute_data structure is aligned on zval boundary (16 bytes)= , > so > > it makes sense to save another 16 bytes, but saving 8 bytes won't affec= t > VM > > stack memory consumption. > > > > Thanks. Dmitry. > > > > Fyi this change broke phpdbg in master. > --20cf30334e258c0f4f050910c35c--