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

Compilation time improvements (part 2) #2591

Merged
merged 3 commits into from
Feb 27, 2025
Merged

Compilation time improvements (part 2) #2591

merged 3 commits into from
Feb 27, 2025

Conversation

ammen99
Copy link
Member

@ammen99 ammen99 commented Feb 26, 2025

This PR adds support for PCH in plugins.
Mostly it is a workaround for mesonbuild/meson#4350.

This does not work with all C++ compilers and is "use at own risk", therefore disabled by default. Can be enabled by passing -Dcustom_pch=true to meson. When disabled, it should not affect anything.

Speeds up compilation by at least 20% in local tests (48s vs 38s in plain build, 1m54s vs 1m40s in debugoptimized+asan).

@ammen99 ammen99 marked this pull request as draft February 26, 2025 23:36
This is a workaround for mesonbuild/meson#4350
This does not work with all C++ compilers and is "use at own risk",
 therefore disabled by default. Can be enabled by passing
 `-Dcustom_pch=true` to meson.
 When disabled, it should not affect anything.

Speeds up compilation by at least 20% in local tests (48s vs 38s).
@ammen99 ammen99 marked this pull request as ready for review February 27, 2025 11:41
@ammen99 ammen99 merged commit 97e1ebe into master Feb 27, 2025
8 checks passed
@ammen99 ammen99 deleted the ctimes-v3 branch February 27, 2025 13:54
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