mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-19 11:28:19 +00:00

[perf] `GenericArgs`-related: Change asserts to debug asserts & use more slice interning over iterable interning 1. The 1st commit yields the following perf gains: [#142289 (comment)](https://github.com/rust-lang/rust/pull/142289#issuecomment-2964041303). 2. The 2nd commit might also have a minor positive perf impact, however that one wasn't tested in isolation. For reference, the initial approachc7e6accd79
(results: https://github.com/rust-lang/rust/pull/142289#issuecomment-2961076587) had a lot more changes (apart from what's now contained in commit 1 and 2) which seemed to be perf irrelevant (cf. the partial countercheck in6f82bf1cfe
(results: https://github.com/rust-lang/rust/pull/142289#issuecomment-2968393647).
For more information about how rustc works, see the rustc dev guide.