Wrap Terminator::attributes in Option - #161159
Conversation
Empty ThinVec is slightly more expensive than None, because it's a pointer to a static singleton, while None is just a constant on a stack.
|
@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.
Wrap Terminator::attributes in Option
|
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 (9e7c5f7): comparison URL. Overall result: ❌ regressions - no action neededBenchmarking means the PR may be perf-sensitive. Consider adding rollup=never if this change is not fit for rolling up. @rustbot label: -S-waiting-on-perf -perf-regression 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 -3.9%, secondary 0.8%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesResults (primary 2.1%, secondary 2.5%)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: 459.382s -> 458.457s (-0.20%) |
|
Results are mostly below significance treshold, but they are largely positive (most benchmarks improved, so it's probably not a wash). |
Empty ThinVec is slightly more expensive than None, because it's a pointer to a static singleton, while None is just a constant on a stack. We've seen this before in other places. This is a small win in local Cachegrind runs.