Use mozilla::HashMap for the JS holder map
Categories
(Core :: XPCOM, task)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox76 | --- | fixed |
People
(Reporter: jonco, Assigned: jonco)
Details
Attachments
(2 files)
The comments in mfbt/HashTable.h say this is a lot faster than PLDHashTable so we should probably use it for the JS holders map.
This is in preparation for hopefully figuring out how we can split up the JS holders by zone.
Comment 1•5 years ago
|
||
I think we improved that situation. Nathan, is that right?
Comment 2•5 years ago
|
||
(In reply to Eric Rahm [:erahm] from comment #1)
I think we improved that situation. Nathan, is that right?
We improved the situation as far as memory usage is concerned, but mozilla::HashMap is almost certainly going to be faster because it (potentially) inlines everything due to being template-based. Maybe LTO + PGO winds up doing some sort of code-splitting + inlining across the calls-through-function-pointers that PLDHashTable requires, I dunno.
Comment 3•5 years ago
|
||
Okay well from a fission memshrink point of view lets not blow up memory usage.
| Assignee | ||
Comment 4•5 years ago
|
||
| Assignee | ||
Comment 5•5 years ago
|
||
Depends on D67017
Comment 7•5 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/4da09b513bb1
https://hg.mozilla.org/mozilla-central/rev/15d4e5e5fd14
Description
•