Support allocating flattened rope characters in the nursery
Categories
(Core :: JavaScript Engine, task, P2)
Tracking
()
People
(Reporter: jandem, Assigned: jandem)
References
(Blocks 2 open bugs)
Details
(Keywords: leave-open, Whiteboard: [sp3])
Attachments
(4 files)
On a full Speedometer 3 run we call malloc about 200,000 times for rope flattening. Most of these (> 93% according to some quick-and-dirty logging) could instead allocate the buffer in the nursery.
This should be doable now after bug 1853907. I have a WIP patch that passes most tests, but it needs bug 1879918 to be fixed first.
Updated•10 months ago
|
Updated•10 months ago
|
Assignee | ||
Updated•7 months ago
|
Assignee | ||
Comment 1•7 months ago
|
||
This was added when we calculated the size manually, but with mallocSizeOf
we don't need special handling for extensible strings.
Assignee | ||
Comment 2•7 months ago
|
||
Assignee | ||
Comment 3•7 months ago
|
||
Also fixes/deletes some outdated comments.
Assignee | ||
Comment 4•7 months ago
|
||
Now that strings can have nursery-allocated chars, we can also use this when
flattening nursery-allocated ropes.
Assignee | ||
Comment 6•7 months ago
|
||
Improves TodoMVC-JavaScript-ES5/Adding100Items/Sync
by about 3.6%. Looking at the latest profile from Markus for this test, I do see some rope flattening time (under DOMParser.parseFromString
and Template.prototype.show
).
Comment 7•6 months ago
|
||
There are some r+ patches which didn't land and no activity in this bug for 2 weeks.
:jandem, could you have a look please?
If you still have some work to do, you can add an action "Plan Changes" in Phabricator.
For more information, please visit BugBot documentation.
Assignee | ||
Comment 8•6 months ago
|
||
Waiting for some other bugs to land first.
Assignee | ||
Comment 10•3 months ago
|
||
(In reply to Iain Ireland [:iain] from comment #9)
Can this land now?
I have to rebase it on top of bug 1914378 which changes the same code.
Comment 11•3 months ago
|
||
Assignee | ||
Updated•3 months ago
|
Comment 12•3 months ago
|
||
bugherder |
Description
•