Page MenuHome

Cleanup: Add precompiled headers for `bf_compositor`
ClosedPublic

Authored by Aaron Carlisle (Blendify) on Jan 11 2022, 7:30 AM.

Details

Summary

With this change, compilation saw a 2.4x improvement.

This can be combined with unity build to give an overall 4x improvement

Depends on D13797

Diff Detail

Repository
rB Blender
Branch
compositor-pch (branched from master)
Build Status
Buildable 19886
Build 19886: arc lint + arc unit

Event Timeline

Aaron Carlisle (Blendify) requested review of this revision.Jan 11 2022, 7:30 AM
Aaron Carlisle (Blendify) created this revision.
  • Revert "Cleanup: Use cmake's native precompiled header support"
Aaron Carlisle (Blendify) retitled this revision from Cleanup: Use cmake's native precompiled header support to Cleanup: Add precompiled headers for `bf_compositor`.Jan 11 2022, 7:40 AM
Aaron Carlisle (Blendify) edited the summary of this revision. (Show Details)
Aaron Carlisle (Blendify) edited the summary of this revision. (Show Details)

I am fine with the change, but I should not sign off on this ticket. CMake isn't my expertise. So will leave that for the other reviewers.
Personally I guess that the system libraries and the intern headers would be good to add there by default. Not really sure why some operations
would make a difference.

Yeah, I tried to include any system includes along with any includes that are used often.

These operations are generic and used often by other operations.

Sergey Sharybin (sergey) added inline comments.
source/blender/compositor/COM_precomp.h
2

How's the unity build related to precompiled headers?
What is the purpose of this comment anyway?

  • Correct patch number in comment
Aaron Carlisle (Blendify) marked an inline comment as done.Jan 11 2022, 6:07 PM
Aaron Carlisle (Blendify) added inline comments.
source/blender/compositor/COM_precomp.h
2

This was added in the other PCH file for freestyle in rBf0ff593d9784a78ef807608d54617a62986522d0

I am not pressed on keeping the comment, just added to keep convention.

Aaron Carlisle (Blendify) marked an inline comment as done.
  • Merge branch 'master' into compositor-pch
  • Merge branch 'master' into compositor-pch

As you pointed out on chat, there's maybe a another 500ms to gain by adding COM_Debug.h , but all the really expensive stuff has been taken care of already, up to you if you want to include it, accepted regardless.

This revision is now accepted and ready to land.Jan 11 2022, 9:10 PM