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

Small refactoring to Extract for compile time. #4444

Merged
merged 1 commit into from
Oct 25, 2024

Conversation

jonmeow
Copy link
Contributor

@jonmeow jonmeow commented Oct 25, 2024

AFAICT #4363 made builds of extract.cpp go from ~15s to ~35s. I'm not sure how to really improve on this, short of adding boilerplate to the types in order to reduce template use (e.g., instead of using struct reflection to return fields, we could have something that directly returns fields). But, this switch to MaybeTrace seems to be about a 20% build time improvement (down to ~30s), with noinline accounting for a part of that.

@josh11b
Copy link
Contributor

josh11b commented Oct 25, 2024 via email

@josh11b josh11b added this pull request to the merge queue Oct 25, 2024
Merged via the queue into carbon-language:trunk with commit 0ca0d0d Oct 25, 2024
10 checks passed
@jonmeow jonmeow deleted the extract-time branch October 28, 2024 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants