Optimize: Collect into sorted collection
I found ac600ed8b40d80b456a32edd8d19d3ca9b0a11fb and thought that this could be optimized by collecting into a sorted collection right away instead of collecting into an unsorted and sorting that afterwards.
This is a proposal, feel free to take or leave however you prefer ;-)
1 file changed
+18
-17
052839ac
→
db6130f8
modified crates/radicle-types/src/traits/repo.rs
@@ -76,26 +76,27 @@ pub trait Repo: Profile {
|
|
|
|
|
|
| - | |
| - | |
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
| - | |
| + | |
| + | |
| + | |
|
|
| - | |
| + | |
|
|
|
|
|