Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:81528 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 76413 invoked from network); 1 Feb 2015 11:13:45 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Feb 2015 11:13:45 -0000 Authentication-Results: pb1.pair.com smtp.mail=php@beccati.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=php@beccati.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain beccati.com designates 176.9.114.167 as permitted sender) X-PHP-List-Original-Sender: php@beccati.com X-Host-Fingerprint: 176.9.114.167 spritz.beccati.com Received: from [176.9.114.167] ([176.9.114.167:40597] helo=mail.beccati.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 0E/F4-01632-76A0EC45 for ; Sun, 01 Feb 2015 06:13:44 -0500 Received: (qmail 12309 invoked from network); 1 Feb 2015 11:13:39 -0000 Received: from home.beccati.com (HELO MacBook-Pro-di-Matteo.local) (88.149.176.119) by mail.beccati.com with SMTP; 1 Feb 2015 11:13:39 -0000 Message-ID: <54CE0A5E.8060901@beccati.com> Date: Sun, 01 Feb 2015 12:13:34 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: Larry Garfield , internals@lists.php.net References: <54CBC804.7050706@gmail.com> <54CD7668.30301@garfieldtech.com> <54CD7975.8040908@gmail.com> <54CDE9FF.40700@googlemail.com> <54CDF420.1030801@garfieldtech.com> In-Reply-To: <54CDF420.1030801@garfieldtech.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [RFC] Immutable variables and objects From: php@beccati.com (Matteo Beccati) Hi Larry, Il 01/02/15 10:38, Larry Garfield ha scritto: > On 02/01/2015 02:55 AM, Crypto Compress wrote: >> - If the old object is not thrown away, then memory consumption is >> doubled and the "fast" argument is wrong. >> (Performance, of cloning an object without copying values and of some >> method calls, is negligible.) > > I'm not sure that anyone has benchmarked the memory impact of the > immutable approach yet. I will pass that along and see what data comes > out. I think I did while checking its speed. Maybe I didn't publish the result, but going from memory there was no significant footprint increase. Just the expected speed decrease. Cheers -- Matteo