Closed Bug 1287243 Opened 8 years ago Closed 8 years ago

Optimize the type used to store Variant's tag

Categories

(Core :: MFBT, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla50
Tracking Status
firefox50 --- fixed

People

(Reporter: Waldo, Assigned: Waldo)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Variant<...Ts>::tag is a full size_t right now, even if sizeof...(Ts) is a very small number. When possible we should use smaller types that pack better and may be faster to get/set.
Attached patch PatchSplinter Review
Attachment #8771607 - Flags: review?(nfitzgerald)
Comment on attachment 8771607 [details] [diff] [review] Patch Review of attachment 8771607 [details] [diff] [review]: ----------------------------------------------------------------- Great, thanks :)
Attachment #8771607 - Flags: review?(nfitzgerald) → review+
Pushed by jwalden@mit.edu: https://hg.mozilla.org/integration/mozilla-inbound/rev/2475145b53b6 Optimize the type used to store Variant's tag. r=fitzgen
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla50
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: