Re: Re: "waldschrotts guide to nifty references" - manual pagedraft, version 0.9b

From: Date: Sun, 20 Aug 2000 20:08:08 +0000
Subject: Re: Re: "waldschrotts guide to nifty references" - manual pagedraft, version 0.9b
References: 1 2  Groups: php.dev 
Request: Send a blank email to php-dev+get-29953@lists.php.net to get a copy of this message
At 23:04 20/08/2000, André Langhorst wrote:
I wouldn't mention this at all. I'll state it again, loud and clear, that references were *not* designed to enable you to create recursive data structures, and they perform very badly for this purpose. The leakage issue can be very serious - for instance, a leaking data structure that leaks 30 bytes, can end up leaking megabytes if it's put in a loop.
just stas ensured that I don´t have to worry about, no one puts these in a looped structure, but I found it quite essential in OO communication in PHP and speed-wise it performs good, better then copying the required data into other objects and that´s not the only reason to use these... my current problems (only) with circ-refs: a) circ-refs leak (a bit) doesn´t matter in most cases b) var_dump() does not work with them if there are more, please tell...
There shouldn't be any further problems with them. Zeev -- Zeev Suraski <zeev@zend.com> http://www.zend.com/

« previous php.dev (#29953) next »