Commits
Click on a commit to change the comparison rangeperf(linter): reduce string cloning in tsgo fixes (#14092)
`Message::from_tsgo_lint_diagnostic` receives an owned `TsGoLintDiagnostic`, so there's no need to clone all the strings in it.
Instead `mem::take` the `fixes` and `suggestions` `Vec`s, and use `into_iter()` to iterate over them, so have owned `String`s that can move into the new structure, instead of cloning.
Also, use `Vec::extend` instead of a loop with repeated `Vec::push` calls, to reduce bounds checks.2 months ago
by overlookmotel