Re: [RFC] Immutable variables and objects

From: Date: Sun, 01 Feb 2015 11:13:34 +0000
Subject: Re: [RFC] Immutable variables and objects
References: 1 2 3 4 5 6  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
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

Thread (23 messages)

« previous php.internals (#81528) next »