mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-12-18 06:22:28 +03:00
fc8d8bcb43
The changes in this commit optimize the sorting of virtual branch files by pre-computing the index positions of the ownership claims for each file path. This improves the performance of the sorting operation by avoiding the need to repeatedly search for the index positions during the comparison step. With 1900 hunks in a vbranch, I've found that this helps reduce the run time from 9 seconds down to just 5. I considered not sorting at all if we didn't have any branches, but this didn't provide any substantial change in performance. |
||
---|---|---|
.. | ||
src | ||
tests | ||
Cargo.toml |