core: respect precision in ByteStr Display#153025
core: respect precision in ByteStr Display#153025rust-bors[bot] merged 1 commit intorust-lang:mainfrom
ByteStr Display#153025Conversation
|
r? @jhpratt rustbot has assigned @jhpratt. Use Why was this reviewer chosen?The reviewer was selected based on:
|
|
@bors try @rust-timer queue Just to get ahead of potential perf (shouldn't block merging as a correctness fix). |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
core: respect precision in `ByteStr` `Display`
This comment has been minimized.
This comment has been minimized.
|
Finished benchmarking commit (2448715): comparison URL. Overall result: ✅ improvements - no action neededBenchmarking 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. @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 1.1%, secondary 4.8%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesResults (primary 7.1%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Binary sizeResults (primary 0.0%, secondary 0.3%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Bootstrap: 479.41s -> 478.565s (-0.18%) |
|
@rustbot reroll |
|
@bors r+ |
This comment has been minimized.
This comment has been minimized.
What is this?This is an experimental post-merge analysis report that shows differences in test outcomes between the merged PR and its parent PR.Comparing eda4fc7 (parent) -> 98e7077 (this PR) Test differencesShow 3 test diffs3 doctest diffs were found. These are ignored, as they are noisy. Test dashboardRun cargo run --manifest-path src/ci/citool/Cargo.toml -- \
test-dashboard 98e7077b903559d7a4fafb775cd5292cc9427b67 --output-dir test-dashboardAnd then open Job duration changes
How to interpret the job duration changes?Job durations can vary a lot, based on the actual runner instance |
|
Finished benchmarking commit (98e7077): comparison URL. Overall result: ✅ improvements - no action needed@rustbot label: -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 (secondary 1.1%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesResults (primary -2.3%, secondary 2.7%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Binary sizeResults (primary 0.0%, secondary 0.3%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Bootstrap: 479.713s -> 479.865s (0.03%) |
Fixes #153022.
ByteStr'sDisplayimplementation didn't respect the precision parameter. Just likeFormatter::pad, this is fixed by counting off the characters in the string and truncating after the requested length – with the added complication that theByteStrneeds to be divided into chunks first. By including a fast path that avoids counting the characters when no parameters were specified this should also fix the performance regressions caused by #152865.