Repository navigation
Stop interning single length generic type args (instead storing them as just a type) - #165407
jdonszelmann wants to merge 1 commit into
Conversation
|
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Stop interning single length generic type args (instead storing them as a type)
This comment has been minimized.
This comment has been minimized.
|
💔 Test for e2858f4 failed: CI. Failed jobs:
|
e65a9da to
97d1a06
Compare
|
@bors try |
This comment has been minimized.
This comment has been minimized.
Stop interning single length generic type args (instead storing them as just a type)
This comment was marked as outdated.
This comment was marked as outdated.
|
The job Click to see the possible cause of the failure (guessed by this bot) |
This comment has been minimized.
This comment has been minimized.
|
Finished benchmarking commit (92fa87d): comparison URL. Overall result: ❌✅ regressions and improvements - please read:Benchmarking means the PR may be perf-sensitive. It's automatically marked not fit for rolling up. Overriding is possible but disadvised: it risks changing compiler perf. Next, please: If you can, justify the regressions found in this try perf run in writing along with @bors rollup=never rustc-perf Instruction countOur most reliable metric. Used to determine the overall result above. However, even this metric can be noisy.
Max RSS (memory usage)Results (primary -1.9%, secondary -2.0%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesResults (primary 2.9%, secondary 2.7%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Binary sizeThis perf run didn't have relevant results for this metric. Bootstrap: 482.475s -> 487.541s (1.05%) |
|
☔ The latest upstream changes (presumably #166152) made this pull request unmergeable. Please resolve the merge conflicts by rebasing. |
r? @khyperia
This is often the case for traits without generics - they only have one generic arg: the self type.
This PR is a draft, I've not added all the appropriate safety comments yet. I just want to get some perf data. This relies on the fact that a genericarg uses alignment niches, and the fact that for types the tag in the alignment niche is specifically zero.
Note
I've not used an LLM for any part of this PR, or any other PR I make. This includes any related work like research.