Open
Bug 561505
Opened 15 years ago
Updated 1 year ago
Avoid double hashtable lookups in document.getElementById().
Categories
(Core :: DOM: Core & HTML, defect, P5)
Tracking
()
NEW
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.
Reporter | ||
Comment 1•15 years ago
|
||
And needless to say, we need to not return a refcounted nsIDOMElement from the getElementById() method called by the quickstub...
Comment 2•7 years ago
|
||
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
Assignee | ||
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•