Closed Bug 1081287 Opened 6 years ago Closed 6 years ago

Replace HashMap with EnumMap where possible

Categories

(Firefox for Android :: General, defect)

ARM
Android
defect
Not set

Tracking

()

RESOLVED FIXED
Firefox 35

People

(Reporter: ckitching, Assigned: ckitching)

Details

(Whiteboard: [upstream needed])

Attachments

(2 files)

See the javadocs for details. This leads to small performance improvements for freeee. (it essentially becomes an array keyed by enum ordinals)
Attachment #8503373 - Flags: review?(rnewman)
Can do it for Sets, too...
Attachment #8503409 - Flags: review?(rnewman)
Attachment #8503373 - Flags: review?(rnewman) → review+
Whiteboard: [upstream needed]
Comment on attachment 8503409 [details] [diff] [review]
Use EnumSet where possible

Review of attachment 8503409 [details] [diff] [review]:
-----------------------------------------------------------------

Upstreaming needed for both patches.
Attachment #8503409 - Flags: review?(rnewman) → review+
https://hg.mozilla.org/mozilla-central/rev/efd2ce78cdeb
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 35
You need to log in before you can comment on or make changes to this bug.