Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:79242 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 32529 invoked from network); 27 Nov 2014 17:27:35 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Nov 2014 17:27:35 -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.177 as permitted sender) X-PHP-List-Original-Sender: dmitry@zend.com X-Host-Fingerprint: 209.85.220.177 mail-vc0-f177.google.com Received: from [209.85.220.177] ([209.85.220.177:63138] helo=mail-vc0-f177.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BC/07-27910-50F57745 for ; Thu, 27 Nov 2014 12:27:35 -0500 Received: by mail-vc0-f177.google.com with SMTP id ij19so2350109vcb.36 for ; Thu, 27 Nov 2014 09:27:31 -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:date:message-id:subject:from:to :content-type; bh=qCaCVK054LrQBZ5ZHf37KdWz/yuqbQUkwXE7MWIG4kI=; b=j1UIvrSl7lPvcqM6devhSfN2wn4Tr7ofmmHUAXLU1HuDuyq4UUV5083FtOODuFG1Bk 5TXoACNUREC1Dg+3Sx1WhGmLd9vGfQw54svSDK4J1qOZScsNTlssQHOf5SYXMhX+mBpe 76z9gLPl4rnjgbugdoefpOp/mp3tyJAUeFk2B5detGRaOqepIFh1cDNHWAbN8B3AZCGL wBgUxvpvTu0EhXKCPJcLVghcWJp5hOCBq4fyiIknOiMmg67fvnEkk/QRWVFHTMjplm09 nu9ph6HU407USu6/1/QmHse6eVSNfE0DbHQdeVR+cLl5r62n0ldS7+2dR9+O+7ZBmVPe 32Ng== X-Gm-Message-State: ALoCoQlTMkTuzKINqDzhfG0uuzSFmvs2cmiWofGuucW0Q/PPdoAY/vSFbwYf5nCsB5aQojXVGWym1cVI7nvVUFZLObI3Vaeh4LazRNz9bDJ2l7JM4kTzdL83KAFL0xKVonNup6KHhKHZXtAufYDVR5pAMF406pCj9w== MIME-Version: 1.0 X-Received: by 10.220.71.72 with SMTP id g8mr20922969vcj.33.1417109251338; Thu, 27 Nov 2014 09:27:31 -0800 (PST) Received: by 10.52.176.231 with HTTP; Thu, 27 Nov 2014 09:27:31 -0800 (PST) Date: Thu, 27 Nov 2014 21:27:31 +0400 Message-ID: To: Nikita Popov , Xinchen Hui , Matteo Beccati , PHP Internals Content-Type: multipart/alternative; boundary=047d7b3431a088cb6b0508da759c Subject: EX(scope) removing From: dmitry@zend.com (Dmitry Stogov) --047d7b3431a088cb6b0508da759c Content-Type: text/plain; charset=UTF-8 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 All phpt tests are passed, but I'm not completely sure about one line - https://gist.github.com/dstogov/5ad50d582346385d587e#file-ex_scope-05-diff-L193 On the other hand I can't imagine what it may break. 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) - try to get rid of EX(frame_info) - 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) Thanks. Dmitry. --047d7b3431a088cb6b0508da759c--