W3C home > Mailing lists > Public > www-dom@w3.org > October to December 1998

Re: DOM Level 1 Becomes a W3C Recommendation

From: Arnaud Le Hors <lehors@w3.org>
Date: Fri, 02 Oct 1998 09:05:33 +0200
Message-ID: <36147B3D.5770B4A3@w3.org>
To: www-dom@w3.org
Claude Zervas wrote:
> Node.appendChild() is probably one of the most common method calls when
> building
> server-side documents (or parsing existing documents) and to purposely inhibit
> efficient implementation is extremely short-sighted (I'm being polite).

But remember that the cost of walking up the hierarchy to test whether
the inserted node is an ancestor only applies when the node is already
in the tree. In the case where the node is not in the tree, that is when
it has no parent, the test will be very cheap. And I expect this to be
the most common case.
Arnaud  Le Hors  -  W3C, DOM Activity Lead  -  www.w3.org/People/Arnaud
Received on Friday, 2 October 1998 03:05:36 UTC

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