Closed
Bug 355433
Opened 18 years ago
Closed 18 years ago
Cache nodeinfos in the html content sinks
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
People
(Reporter: sicking, Assigned: sicking)
References
Details
Attachments
(2 files)
9.22 KB,
patch
|
jst
:
review+
jst
:
superreview+
|
Details | Diff | Splinter Review |
207 bytes,
text/html
|
Details |
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.
Assignee | ||
Comment 1•18 years ago
|
||
This is only for the html-sinks btw. The other sinks don't use tag-ids.
Comment 2•18 years ago
|
||
*** Bug 355435 has been marked as a duplicate of this bug. ***
Assignee | ||
Comment 3•18 years ago
|
||
Assignee: general → bugmail
Status: NEW → ASSIGNED
Attachment #241231 -
Flags: superreview?(jst)
Attachment #241231 -
Flags: review?(jst)
Assignee | ||
Comment 4•18 years ago
|
||
Comment 5•18 years ago
|
||
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+
Assignee | ||
Comment 6•18 years ago
|
||
This was checked in a while ago
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Updated•18 years ago
|
Flags: in-testsuite-
Updated•5 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•