Closed Bug 1621866 Opened 6 years ago Closed 6 years ago

Use C++17 fold expression in profiler code

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)

The profiler (de)serialization code uses some pre-C++17 tricks to apply a function to variadic arguments. C++17 makes this much easier (and probably more efficient) now with fold expressions.
https://en.cppreference.com/w/cpp/language/fold

Fold expressions are more expressive and probably produce better code than the
older template-recursion and initializer_list patterns.

Pushed by gsquelart@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/3c5ac4d8328f Use C++17 fold expressions in ProfileBufferEntrySerialization.h - r=canaltinova
Status: NEW → RESOLVED
Closed: 6 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: