Open
Bug 2043996
Opened 5 months ago
Updated 5 months ago
Try presizing nursery string deduplication hash table
Categories
(Core :: JavaScript: GC, task, P3)
Core
JavaScript: GC
Tracking
()
NEW
People
(Reporter: jonco, Unassigned)
References
(Blocks 2 open bugs)
Details
Investigations indicate that a significant amount of nursery GC time during the speedometer3 benchmark can be attributed to string deduplication. Growing the hash table involves rehashing existing entries and may account for a reasonable fraction of this. Pre-sizing the table, perhaps to the size used by last minor GC could help here. We could also try only doing this when GCs are occurring frequently.
Comment 1•5 months ago
|
||
A more memory-hungry variant would be clearing without freeing the previous hashtable, to avoid the free/alloc entirely. We'd still want to free it on a shrinking GC.
Updated•5 months ago
|
Updated•5 months ago
|
Blocks: speedometer3
Comment 2•5 months ago
|
||
Please add "PERF" key word.
Thank you.
You need to log in
before you can comment on or make changes to this bug.
Description
•