W3C home > Mailing lists > Public > www-dom@w3.org > April to June 1998

Re: Alternative to the Live NodeIterator

From: Don Park <donpark@quake.net>
Date: Fri, 1 May 1998 20:59:14 -0700
Message-ID: <000e01bd757f$1b78a630$2ee044c6@arcot-main>
To: <www-dom@w3.org>

>I read the objections to this, and none of them resonate with me
>(admittedly it's late on a Friday night ...).  Like Peter, I'm not rabidly
>opposed to a "release" method on iterators (or other DOM objects), but am
>far from persuaded that they add anything useful (especially for ECMAScript
>programmers, who are not going to think about "freeing" resources).

If ECMAScript programmers do not call release(), Nodes will simply
accumulate NodeIterators and will work in most cases.  When NodeIterator
accumulates enough to slow down editing operations, release() method can be
called by ECMAScript programmers as a performance enhancement.

In reality, most ECMAScript will be using C++/C based DOM implementation and
NodeIterator.release can be called by the implementation implicitly.

Bottom line is that there is no conflict with the release idea and


Don Park
Received on Saturday, 2 May 1998 00:09:18 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:03 UTC