Commits
Click on a commit to change the comparison rangeperf(linter): remove allocation in `CompositeFix::merge_fixes` (#14090)
`String::shrink_to_fit` will generally reallocate in order to reduce the `String`'s capacity to minimum size.
In `merge_fixes`, the size of the `String` is unlikely to be excessively over-sized - in best case, it's exactly the right size, and in worst case it's twice as large than it needs to be. The reallocation probably costs more than the gain of clawing back a few bytes of memory. So remove this operation.2 months ago
by overlookmotel