Skip to content

Commit

Permalink
Auto merge of #128200 - estebank:normalize-whitespace, r=pnkfelix
Browse files Browse the repository at this point in the history
Change output normalization logic to be linear against size of output

Modify the rendered output normalization routine to scan each character *once* and construct a `String` to be printed out to the terminal *once*, instead of using `String::replace` in a loop multiple times. The output doesn't change, but the time spent to prepare a diagnostic is now faster (or rather, closer to what it was before #127528).
  • Loading branch information
bors committed Aug 6, 2024
2 parents 0d90c11 + 7ca96fa commit 67e7de3
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit 67e7de3

Please sign in to comment.