Closed
Bug 1347643
Opened 9 years ago
Closed 7 years ago
nsHTMLTags::CaseSensitiveLookupTag is too slow
Categories
(Core :: DOM: HTML Parser, enhancement, P3)
Tracking
()
RESOLVED
WORKSFORME
| Performance Impact | none |
People
(Reporter: smaug, Unassigned)
References
Details
Attachments
(2 obsolete files)
It is doing a slow hashtable lookup. We probably need some local cache for recently used values.
Updated•9 years ago
|
Whiteboard: [qf-]
Comment 1•9 years ago
|
||
Henri, do you have time to take a look?
Flags: needinfo?(hsivonen)
Priority: -- → P1
Comment 2•9 years ago
|
||
I'll take a look. My preliminary opinion is that we should complicate the HTML5 parser my moving the node creation function pointers onto nsHtml5ElementName and delete nsHTMLTags.cpp.
Assignee: nobody → hsivonen
Flags: needinfo?(hsivonen)
| Reporter | ||
Comment 3•9 years ago
|
||
Whatever works.
If moving stuff to HTML5 Parser is too complicated, a local cache might be good enough.
We have such cache for example for content lists, since doing a hashtable lookup is too slow
http://searchfox.org/mozilla-central/rev/9af9b1c7946ebef6056d2ee4c368d496395cf1c8/dom/base/nsContentList.cpp#191-193,201-204
| Comment hidden (mozreview-request) |
Comment 5•8 years ago
|
||
Comment 6•8 years ago
|
||
Known todo: Supporting the Tor prefs for disabling SVG and disabling MathML.
Comment 7•8 years ago
|
||
The logic for checking if SVG or MathML is disabled should probably move from nsNameSpaceManager.cpp to nsNodeInfoManager.cpp.
Comment 8•8 years ago
|
||
The patches here apply on top of those in bug 1266495.
Comment 9•8 years ago
|
||
I'll be away from Bugzilla until July 31st, so if there's a Quantum Flow need to drive this patch in the tree before that, I'm OK with someone else getting this landed. Otherwise, I'll pursue landing this when I'm back.
| Comment hidden (mozreview-request) |
| Comment hidden (mozreview-request) |
| Comment hidden (mozreview-request) |
Updated•8 years ago
|
Attachment #8884291 -
Attachment is obsolete: true
Comment 13•8 years ago
|
||
Comment on attachment 8884295 [details] [diff] [review]
Java changes
I'm going with a narrower fix than what the report here identifies as the problem, so moving to the narrower dependency: bug 483155.
Attachment #8884295 -
Attachment is obsolete: true
Updated•8 years ago
|
Assignee: hsivonen → nobody
Updated•8 years ago
|
Priority: P1 → P3
Comment 14•7 years ago
|
||
Olli, do you think we should keep this open? Bug 483155 may have removed the need to do anything here.
Flags: needinfo?(bugs)
| Reporter | ||
Comment 15•7 years ago
|
||
Don't see this stuff in Speedometer perf profiles atm.
Flags: needinfo?(bugs)
| Reporter | ||
Updated•7 years ago
|
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WORKSFORME
Updated•4 years ago
|
Performance Impact: --- → -
Whiteboard: [qf-]
You need to log in
before you can comment on or make changes to this bug.
Description
•