Open Bug 561505 Opened 12 years ago Updated 3 years ago

Avoid double hashtable lookups in document.getElementById().

Categories

(Core :: DOM: Core & HTML, defect, P5)

x86
All
defect

Tracking

()

People

(Reporter: jst, Unassigned)

References

(Blocks 1 open bug)

Details

Right now when document.getElementById() is called we do a hash lookup on the string to find the atom for the wanted id, and then do another hash lookup to find the element with that id (or a hash entry that says that there is no such element). Changing the code such that the hash is keyed on the string directly, rather than the atom, would avoid the double hash lookup on get, and really shouldn't be much more expensive as the id hash is populated either.
And needless to say, we need to not return a refcounted nsIDOMElement from the getElementById() method called by the quickstub...
https://bugzilla.mozilla.org/show_bug.cgi?id=1472046

Move all DOM bugs that haven’t been updated in more than 3 years and has no one currently assigned to P5.

If you have questions, please contact :mdaly.
Priority: -- → P5
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.