Closed Bug 355433 Opened 18 years ago Closed 18 years ago

Cache nodeinfos in the html content sinks

Categories

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

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: sicking, Assigned: sicking)

References

Details

Attachments

(2 files)

Right now we for each node we create convert tag-id -> atom -> nodeinfo. The first conversion there is an array lookup, the second is a hash lookup. However it would be easy to just add a lazily initialized cache that just maps tag-id directly to nodeinfo. That will save us a hash lookup and a bunch of virtual calls.

Patch comming up.
This is only for the html-sinks btw. The other sinks don't use tag-ids.
*** Bug 355435 has been marked as a duplicate of this bug. ***
Attached patch Patch to fixSplinter Review
Assignee: general → bugmail
Status: NEW → ASSIGNED
Attachment #241231 - Flags: superreview?(jst)
Attachment #241231 - Flags: review?(jst)
Comment on attachment 241231 [details] [diff] [review]
Patch to fix

r+sr=jst
Attachment #241231 - Flags: superreview?(jst)
Attachment #241231 - Flags: superreview+
Attachment #241231 - Flags: review?(jst)
Attachment #241231 - Flags: review+
This was checked in a while ago
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Flags: in-testsuite-
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: