At 2:42 PM -0800 12/12/02, Dave Whipp wrote:
"Dan Sugalski" <[EMAIL PROTECTED]> wrote in message
news:a05200f00ba1ebb73c6d2@[63.120.19.221]...
 There'll definitely be memory address reuse. If .id returns the
 current object's memory address, it shouldn't be cached any place, as
 otherwise you'll find things going bang with some regularity.
In a multi-threaded environment, even a simple

  $a.id == $b.id

may have significant time between the two lookups.
No, that's not a problem, since neither $a nor $b can possibly go anywhere, as they're both being referenced. The GC is aggressive, but we do wait until a variable is at least dead before reaping it.
--
Dan

--------------------------------------"it's like this"-------------------
Dan Sugalski even samurai
[EMAIL PROTECTED] have teddy bears and even
teddy bears get drunk

Reply via email to