Closed Bug 1651931 Opened 5 years ago Closed 5 years ago

Remove unnecessary includes from ContentChild.h

Categories

(Core :: DOM: Content Processes, task)

task

Tracking

()

RESOLVED FIXED
mozilla80
Tracking Status
firefox80 --- fixed

People

(Reporter: sg, Assigned: sg)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

ContentChild.h is very expensive to include according to ClangBuildAnalyzer:

217505 ms: /home/simon/work/fuzzy/obj-x86_64-pc-linux-gnu-optimized/dist/include/mozilla/dom/ContentChild.h (included 105 times, avg 2071 ms), included via:
  FOGIPC.cpp  (5560 ms)
  DriverCrashGuard.cpp  (5230 ms)
  ChildSHistory.cpp  (5066 ms)
  ...

At the same time, it includes a look of expensive headers itself, not all of which seem to be really required.

Before these changes, ContentChild.h was the #9 most expensive header to include:
217505 ms: /home/simon/work/fuzzy/obj-x86_64-pc-linux-gnu-optimized/dist/include/mozilla/dom/ContentChild.h (included 105 times, avg 2071 ms)

After these changes, it is no longer among the top 30 most expensive headers.

Some missing includes in other files are added along.

Assignee: nobody → sgiesecke
Status: NEW → ASSIGNED
Pushed by sgiesecke@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/0c1269889e8a Remove unnecessary includes from ContentChild.h. r=nika
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla80
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: