Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Did a few implementations before getting to the Final result.
First I tried PreCompiled Headers but found that it just wasn't producing significant performance boosts if at all. I was getting at most 0.2 seconds of improvement with added on complexity to the codebase.
I then looked into some other methods and found that we can include
ccache
into our environment inSConstruct
that brought it down to 1.4sThis then led to looking into
CacheDir
which significantly improved the performance since it directly pulls the results from.scons_cache
and checks if targets require rebuilding.This is ran on my M1 Max so I can imagine that when running on ThreadRipper we'll seen potentially builds at 0.3 seconds
Fixes #1528