Open
Bug 1342650
Opened 9 years ago
Updated 10 months ago
Consider adding a data structure that combines a Vector + HashSet/HashMap
Categories
(Core :: JavaScript Engine, defect, P3)
Core
JavaScript Engine
Tracking
()
NEW
People
(Reporter: jandem, Unassigned)
References
(Blocks 1 open bug)
Details
(Keywords: triage-deferred)
See bug 1342345. Especially maps/sets that use MovableCellHasher have significant overhead and it would be nice to use a Vector up to length 30 or so to handle the small-number-of-entries cases that are pretty common.
We already have InlineSet/InlineMap in js/src/ds/InlineTable.h that stores the entries inline, maybe we should just change that to use a Vector instead of an array. Ideally we'd use something like mozilla::MaybeOneOf so we don't need space for both the Vector and HashMap/HashSet.
We could use this for the cycle detection classes for instance.
Updated•8 years ago
|
Keywords: triage-deferred
Priority: -- → P3
Updated•3 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•