Re: An observation about "live" NodeLists

keshlam@us.ibm.com wrote:
> 
> >In Java, at least, this is a serious issue, because the vagaries
> >of GC make it impossible to tell particularly early whether or
> >not a NodeList is in use.
> 
> In fact, I looked at such an implementation, and quickly decided Java
> wasn't well suited to it and/or vice versa. Since Java's GC-based, making
> the Nodes aware of the NodeLists means the NodeList objects have to persist
> as long as the Nodes they're based on do; there's no architected way to
> tell the DOM that they're no longer needed.

I know we can't rely on this yet but the WeakReferences in Java 1.2 will
greatly help address this problem.
-- 
Arnaud

Received on Tuesday, 20 October 1998 10:39:50 UTC