Open Bug 2043996 Opened 7 days ago Updated 23 hours ago

Try presizing nursery string deduplication hash table

Categories

(Core :: JavaScript: GC, task, P3)

task

Tracking

()

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.

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.

Severity: -- → N/A
Priority: -- → P3

Please add "PERF" key word.
Thank you.

You need to log in before you can comment on or make changes to this bug.