This repository was archived by the owner on Sep 11, 2020. It is now read-only.
Commit 2d9816a
committed
packfile: optimise NewIndexFromIdxFile for a very common case
Loading from an on-disk idxfile will usually already have the idxfile
entries in order, so check that before wasting time on sorting.
Signed-off-by: David Symonds <[email protected]>1 parent 0710c6c commit 2d9816a
1 file changed
+12
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
| 35 | + | |
35 | 36 | | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
36 | 47 | | |
37 | | - | |
38 | 48 | | |
39 | 49 | | |
40 | 50 | | |
| |||
0 commit comments