diagnostics: dedup ParseSizeError handling - #14063
Conversation
Merging this PR will degrade performance by 1.11%
|
| Mode | Benchmark | BASE |
HEAD |
Efficiency | |
|---|---|---|---|---|---|
| ❌ | Simulation | seq_formatted |
161.8 ms | 180.1 ms | -10.19% |
| ❌ | Simulation | numfmt_stream_to_si |
292.1 ms | 307.6 ms | -5.06% |
| ❌ | Simulation | wc_bytes_synthetic[500] |
183.4 µs | 190 µs | -3.46% |
| ❌ | Simulation | numfmt_stream_to_si_precision |
348.8 ms | 361 ms | -3.38% |
| ❌ | Memory | tee_stdin_file[10000000] |
71.3 KB | 73.7 KB | -3.2% |
| ⚡ | Simulation | mv_force_overwrite |
233 ms | 202.3 ms | +15.18% |
| ⚡ | Simulation | cksum_crc |
42 ms | 40.3 ms | +4.3% |
Tip
Investigate this regression by commenting @codspeedbot fix this regression on this PR, or directly use the CodSpeed MCP with your agent.
Comparing sylvestre:diag-dedup (b084129) with main (df30282)2
Footnotes
-
50 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩
-
No successful run was found on
main(5188b6f) during the generation of this report, so df30282 was used instead as the comparison base. There might be some changes unrelated to this pull request in this report. ↩
|
GNU testsuite comparison: |
…were eaten by shell)
Four cleanup commits after the recent ariadne/caret diagnostic work:
uucore: add ParseSizeError::format_option_error, drop per-util copies — sort, du and od each had an identical 12-line
format_error_messagefunction. Moved to a method onParseSizeErrorin uucore, with shared FTL keys.sort, du, od: inline format_error_message, call format_option_error directly — removes the now-trivial one-liner wrapper and calls the method at each site.
dd, install, stat: remove redundant UError::code() = 1 —
UError::code()already defaults to 1; these three overrides were dead code.od: drop local size_error helper, inline render_size_value directly — the local
size_errorfunction was a thin wrapper aroundrender_size_value+quiet_if_reported, already available in uucore.