Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:69246 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 46547 invoked from network); 20 Sep 2013 12:15:04 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Sep 2013 12:15:04 -0000 Received: from [127.0.0.1] ([127.0.0.1:9592]) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ECSTREAM id 2D/B1-31578-74C3C325 for ; Fri, 20 Sep 2013 08:15:03 -0400 X-Host-Fingerprint: 89.29.181.163 unknown Received: from [89.29.181.163] ([89.29.181.163:4510] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 17/B1-31578-06A3C325 for ; Fri, 20 Sep 2013 08:06:57 -0400 Message-ID: <17.B1.31578.06A3C325@pb1.pair.com> To: internals@lists.php.net Date: Fri, 20 Sep 2013 14:06:53 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Firefox/24.0 SeaMonkey/2.21 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------080800030907080809000501" X-Posted-By: 89.29.181.163 Subject: Performance update involving zval containers. Why not possible? From: ruben.santacruz@gmail.com (ruben) --------------080800030907080809000501 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Hi, first of all I want to say that I am just a newbie in PHP. I am switching to PHP from other languages and I am exploring how PHP manages references. To do that I am gathering information about what happens with Symbol Tables and Variables Containers when using references. You know: reference-counting, copy-on-write and all that stuff... I found out some cases where I think that some Variable Containers copies could be skipped, thus saving memory and improving performance relying in the copy-on-write principle. I wrote a PDF trying to explain what I mean. It is not written in a very techy language, because I am just new and don't know too much about the internals, but I hope you can understand it and post your comments. Probably if my "update" hasn't been done yet, is because it is not possible, but I will very glad to hear your comments and learn from you. Thank you very much. --------------080800030907080809000501--