Extract param struct to separate header
This change extracts param data related struct only used in mojom cc files to another header file, params-data.h. And only mojom cc files include params-data.h. By extracting structs, this CL reduces total size of included files from compiles including mojom headers. This CL reduces total size of generated header files when building chrome. mojom-shared.h: 9576659 -> 6343886 mojom-shared-internal.h: 7552016 -> 3053172 And this helped to reduce compile time. e.g. obj/content/browser/browser/navigation_url_loader_impl.o: 25.6s -> 22.7s in Z840 Linux chrome build time on 24C/48T Z840 Linux reduced from 3478.5s to 3385.5s. Bug: 922875 Change-Id: I0e233e6046f9b47d6386ea24ea911da638b6aa69 Reviewed-on: https://chromium-review.googlesource.com/c/1436286 Commit-Queue: Takuto Ikuta <tikuta@chromium.org> Reviewed-by:Ken Rockot <rockot@google.com> Cr-Commit-Position: refs/heads/master@{#626302}
Showing
Please register or sign in to comment