Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix build time performance improvements #161

Merged
merged 2 commits into from
Nov 20, 2024

Conversation

inakleinbottle
Copy link
Contributor

The build performance of RougPy is somewhat lacking, especially on Windows where we have to use MSVC (by far the slowest compiler of the three). To combat this, we define a new PrecompiledHeaders target that we can link to that contains all the private headers that we need all over the place in RoughPy that take a lot of time to process. This mainly consists of cereal, which ultimately we want to remove because it is so expensive to instantiate, and a pain to integrate across API boundaries. (Removing this is somewhat down the line.)

Introduce a new `RoughPy_PrecompiledHeaders` target to reduce build time, especially for cereal header parsing. Adjust CMakeLists for relevant modules to link against the new precompiled headers target.
Upgraded msbuild setup action to version 2 in the tests.yml file to ensure compatibility with the latest features and improvements. This change is scoped to the Windows runner environment in the GitHub CI workflow.
@inakleinbottle inakleinbottle merged commit efc6961 into main Nov 20, 2024
3 checks passed
@inakleinbottle inakleinbottle deleted the fix-build-time-performance-improvements branch November 20, 2024 11:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant