Closed
Bug 977430
Opened 11 years ago
Closed 8 years ago
forward declare Telemetry::ID when we don't need to use specific values
Categories
(Toolkit :: Telemetry, defect)
Toolkit
Telemetry
Tracking
()
RESOLVED
WONTFIX
People
(Reporter: heycam, Assigned: heycam)
Details
Attachments
(1 file)
(deleted),
patch
|
Details | Diff | Splinter Review |
To avoid rebuilding translation units that declare functions etc. that take/return Telemetry::ID values, we can define it as a sized enum and then forward declare it. Doing this we can remove the actual inclusion of the generated enum header file from all but one .h file (accessible/src/base/Statistics.h -- that file is only included in a few cpp files though). That means when histograms get added/removed, we'll rebuild less.
Assignee | ||
Comment 1•11 years ago
|
||
So this helps a bit, but perhaps not as much as we'd like, as I mention in bug 968923 comment 35. Might still be worth the churn though.
Will get Vladan to review if you think this is worthwhile, gps.
Assignee | ||
Comment 2•11 years ago
|
||
Comment 3•11 years ago
|
||
Comment on attachment 8382758 [details] [diff] [review]
patch
Review of attachment 8382758 [details] [diff] [review]:
-----------------------------------------------------------------
I'm not a C++ guru and don't know enough to give adequate feedback for this patch.
Attachment #8382758 -
Flags: feedback?(gps)
Comment 4•8 years ago
|
||
We already use a sized enum for Telemetry::HistogramID.
The code changes here would be bitrotted a lot.
Heycam, is that something that you'd still want to pick up or can we close this?
Flags: needinfo?(cam)
Assignee | ||
Comment 5•8 years ago
|
||
I think we can close it.
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Flags: needinfo?(cam)
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•