Closed Bug 1352978 Opened 8 years ago Closed 8 years ago

nsHTML5AttributeName::nameByBuffer allocates too often

Categories

(Core :: DOM: HTML Parser, enhancement, P3)

36 Branch
enhancement

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.
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.
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.
Whiteboard: [qf]
William, I was going to ask you if you could help with some of these parser performance improvements.
Flags: needinfo?(wchen)
Priority: -- → P3
Whiteboard: [qf] → [qf:p1]
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.
Depends on: 1355479
Assignee: nobody → hsivonen
Flags: needinfo?(wchen)
Oops. Wrong bug.
Assignee: hsivonen → nobody
Flags: needinfo?(wchen)
William, is this still a P1 given other recent changes to the parser?
Flags: needinfo?(wchen)
Flags: needinfo?(wchen)
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)
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]
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.