Skip to content

Conversation

@Turbo87
Copy link
Member

@Turbo87 Turbo87 commented Jan 2, 2025

With the generic <E: Email> parameter, this function was getting copied a lot of times and generated quite a bit of code. This PR replaces the generic parameter with two regular, non-generic function arguments, which brings the number of copies down to 1. This should hopefully help a bit with compilation times (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 52f2f0c into rust-lang:main Jan 2, 2025
8 checks passed
@Turbo87 Turbo87 deleted the mono-email branch January 2, 2025 14:14
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