Repository navigation
Remove #[inline] from integer Debug impl - #164090
hanna-kruppe wants to merge 1 commit into
Conversation
The dynamic dispatch in core::fmt machinery prevents this code from being inlined in normal usage, but the method is still duplicated into every codegen units that constructs a `dyn Debug` vtable for integers.
|
@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 #[inline] from integer Debug impl
This comment has been minimized.
This comment has been minimized.
|
Finished benchmarking commit (f546fb8): 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 -0.6%, secondary 4.8%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesResults (primary 3.1%, secondary 20.2%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Binary sizeResults (primary -0.2%, secondary -0.2%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Bootstrap: 487.044s -> 489.318s (0.47%) |
|
That's unexpected. Extra weird that most of the regressions are Well at least the binary size results seem confirm my thesis. |
|
Ah, this might be #t-compiler/performance > Suspiciously positive results (noise in get_module_children) yet again :/ |
The dynamic dispatch in core::fmt machinery prevents this code from being inlined in normal usage, but the method is still duplicated into every codegen units that constructs a
dyn Debugvtable for integers.