Closed Bug 1623195 Opened 5 years ago Closed 5 years ago

Use updated Variant::match with 2-arg lambda in Serializer<Variant>

Categories

(Core :: Gecko Profiler, task, P2)

task

Tracking

()

RESOLVED FIXED
mozilla76
Tracking Status
firefox76 --- fixed

People

(Reporter: mozbugz, Assigned: mozbugz)

References

Details

Attachments

(1 file)

Use updated Variant::match() with 2-arg lambda in ProfileBufferEntryWriter::Serializer<Variant<...>>.

The old code was using std::index_sequence_for to call templated functions for
every possible Variant alternative.
Instead, using Variant::match() with a generic lambda (that also takes the
current Variant index, thanks to bug 1621865) means we're only calling the
function corresponding to the current alternative.

Pushed by gsquelart@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/12f26ec64fee Optimize ProfileBufferEntryWriter::Serializer<Variant> - r=canaltinova
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla76
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: