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

Re: DOM Level 1 Becomes a W3C Recommendation

From: Claude Zervas <czervas@Adobe.COM>
Date: Fri, 02 Oct 1998 11:55:13 -0700
Message-Id: <>
To: www-dom@w3.org
At 09:05 AM 10/2/98 +0200, Arnaud Le Hors wrote:
>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
>> 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.

Yes, for parsing and new document generation you're right.
But for filtering applications where nodes are moved or
child trees are flattened then the cost could be high.

- Claude Zervas
Adobe Systems, Inc.
Received on Friday, 2 October 1998 14:54:49 UTC

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