W3C home > Mailing lists > Public > public-webapps@w3.org > October to December 2011

Re: [DOM4] XML lang

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Wed, 05 Oct 2011 11:38:29 -0400
Message-ID: <4E8C79F5.8050203@mit.edu>
To: Marcos Caceres <w3c@marcosc.com>
CC: public-webapps@w3.org
On 10/5/11 10:51 AM, Marcos Caceres wrote:
>> One other question: "expensive" is a relative term. How often do you
>> expect to perform this operation?
> Not very in my case. The document is static.

OK.  Just to put this into perspective, on the attached testcase I get 
numbers in the 40-300 range on modern browsers.  That's that many 
treewalks up the DOM in the testcase (which is about 30 levels deep) per 

And you could probably nix the hasAttribute call if you really cared 
about performance...


Received on Wednesday, 5 October 2011 15:39:08 UTC

This archive was generated by hypermail 2.3.1 : Friday, 27 October 2017 07:26:36 UTC