diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2022-06-08 17:02:06 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2022-06-16 10:52:19 +1000 |
| commit | c4cd04480bdfca84274dcbe80dae710bdbe0bd59 (patch) | |
| tree | cca237f77482894f9e28de254b9b3dc596fbf4ae /src | |
| parent | 7e4ec35d0cc56ac3016e98909aad8688516a43f8 (diff) | |
| download | rust-c4cd04480bdfca84274dcbe80dae710bdbe0bd59.tar.gz rust-c4cd04480bdfca84274dcbe80dae710bdbe0bd59.zip | |
sort_candidates: avoid the second comparison if possible.
This is a performance win for `unicode-normalization`. The commit also removes the closure, which isn't necessary. And reformulates the comparison into a form I find easier to read.
Diffstat (limited to 'src')
0 files changed, 0 insertions, 0 deletions
