Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(1) Non-live NodeLists are now implemented using native Arrays, with an extra `item()` method to match the NodeList interface. (2) Using such an array for `Node.childNodes` is much faster as it doesn't force V8 into dictionary mode. (3) The (live) `Node.children` list is now lazily created, hence the performance penalty is avoided as long as the property isn't read.
- Loading branch information
Showing
2 changed files
with
37 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
this is causing problems in node 0.4.7.. is it required?