Closed
Bug 1352978
Opened 8 years ago
Closed 8 years ago
nsHTML5AttributeName::nameByBuffer allocates too often
Categories
(Core :: DOM: HTML Parser, enhancement, P3)
Tracking
()
RESOLVED
FIXED
| Performance Impact | high |
People
(Reporter: smaug, Unassigned)
References
Details
(Whiteboard: [fixed by bug 1355479])
I hope we could share the instances, similar to NodeInfos, but I'm not really familiar with the setup.
Comment 1•8 years ago
|
||
This implies that the same non-standard attribute repeats a lot. Is there a specific JS lib whose data-* attributes you see repeating in such a pattern that this would be a benefit? I wonder if we should bake some of those into the static atoms.
| Reporter | ||
Comment 2•8 years ago
|
||
This is from Speedometer, the bug which bug 1351857 blocks.
Speedometer is a silly benchmark from DOM point of view, but less silly from JS point of view, and I'm trying to get DOM out from the profiles as much as possible so that JS folks can focus on the rest.
Updated•8 years ago
|
Whiteboard: [qf]
Comment 3•8 years ago
|
||
William, I was going to ask you if you could help with some of these parser performance improvements.
Flags: needinfo?(wchen)
Priority: -- → P3
Updated•8 years ago
|
Whiteboard: [qf] → [qf:p1]
Comment 4•8 years ago
|
||
We need to make nsHtml5HtmlAttributes not hold nsHtml5AttributeName instances in bug 1355479 and then we can start reusing a single nsHtml5AttributeName instance for attributes for which we don't have a pre-interned nsHtml5AttributeName instance in this bug.
Updated•8 years ago
|
Assignee: nobody → hsivonen
Flags: needinfo?(wchen)
Updated•8 years ago
|
Flags: needinfo?(wchen)
Comment 6•8 years ago
|
||
William, is this still a P1 given other recent changes to the parser?
Flags: needinfo?(wchen)
Updated•8 years ago
|
Flags: needinfo?(wchen)
Comment 7•8 years ago
|
||
Henri, I think you already fixed this bug by reusing AttributeName in bug 1355479. Can you confirm? (I just wanted to make sure that this bug didn't have a different intent before marking as duplicate) Thanks.
Flags: needinfo?(wchen) → needinfo?(hsivonen)
Comment 8•8 years ago
|
||
I believe this was fixed by the patch for bug 1355479. (Not marking as duplicate, because what's reported is technically different even if the fix went into the other patch.)
Status: NEW → RESOLVED
Closed: 8 years ago
Flags: needinfo?(hsivonen)
Resolution: --- → FIXED
Whiteboard: [qf:p1] → [qf:p1][fixed by bug 1355479]
Updated•3 years ago
|
Performance Impact: --- → P1
Whiteboard: [qf:p1][fixed by bug 1355479] → [fixed by bug 1355479]
You need to log in
before you can comment on or make changes to this bug.
Description
•