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

From: Date: Sun, 20 Aug 2000 20:04:06 +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-29952@lists.php.net to get a copy of this message
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... -- o----------0-¬---------O-·---¬----o---®-----o o O ° . | http://www.kiffen.de | pRoteçt y0ur bRaín |0 O ° ¤ ° · 0°·³°²'²³-¹'³´³°^°³~³²³°'³²²¨³²^³¹³²°²³`³º³°Þ ° o © ° . · | psychedelic experience | gott@kiffen.de | O ° o ° o-¬--o--0-----©-·--O-----o-----0-¤----------o 0 ° · ° . ¤ ·

« previous php.dev (#29952) next »