Remove some boxes from ast::Ty#152798
Conversation
|
r? @jackh726 rustbot has assigned @jackh726. Use Why was this reviewer chosen?The reviewer was selected based on:
|
|
@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.
Remove some boxes from `ast::Ty`
|
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 (1fb03d7): comparison URL. Overall result: ❌✅ regressions and improvements - please read the text belowBenchmarking this pull request means it may be perf-sensitive – we'll automatically label it not fit for rolling up. You can override this, but we strongly advise not to, due to possible changes in compiler perf. Next Steps: If you can justify the regressions found in this try perf run, please do so in sufficient writing along with @bors rollup=never 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 0.4%, secondary -5.2%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesResults (secondary 6.5%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 480.396s -> 481.352s (0.20%) |
|
Cachegrind just points to |
|
DHAT's |
|
BTW what's the motivation for this change? |
|
☔ The latest upstream changes (presumably #152825) made this pull request unmergeable. Please resolve the merge conflicts. |
|
@nnethercote Nice, thank you so much! dhat-copy did the trick. I figured it out. Some expansion related types get bigger when AST types get bigger, and that causes bigger copies. Specifically
Just casual shopping for perf and simpler types. |
Let's see if this works.
Draft: Could use some commit cleanup before full review, but ready for perf run.