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

tests/util: Reduce monomorphization overhead for the RequestHelper code #10305

Merged
merged 5 commits into from
Jan 2, 2025

Conversation

Turbo87
Copy link
Member

@Turbo87 Turbo87 commented Jan 2, 2025

The result of cargo llvm-lines --lib --profile test indicated that our RequestHelper trait was causing a lot of code generation due to the generic <T> parameter.

This PR considerably reduces the amount of copied code, and thus should improve the compile times of our test suite a bit (see https://matklad.github.io/2021/09/04/fast-rust-builds.html#Keeping-an-Eye-on-Instantiations).

@Turbo87 Turbo87 added C-internal 🔧 Category: Nonessential work that would make the codebase more consistent or clear A-backend ⚙️ labels Jan 2, 2025
@Turbo87 Turbo87 merged commit 9607d28 into rust-lang:main Jan 2, 2025
8 checks passed
@Turbo87 Turbo87 deleted the mono-test-utils branch January 2, 2025 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-backend ⚙️ C-internal 🔧 Category: Nonessential work that would make the codebase more consistent or clear
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant