By doing a series of small improvements I was able to improve the query time in TestLargeProvidersSet by around 2x.
| Improvement |
Time (single CPU) |
Speedup (from Initial) |
| Initial time |
7290 ms |
1x |
| Avoid go channels #38 |
6249 ms |
1.2 x |
| Avoid redundant key check #38 |
3791 ms |
1.92 x |
| Fast Base32 conversion (already in master) |
3719 ms |
1.96 x |
|
|
|
| Avoid unnecessary copy of databases Value ipfs/go-datastore#59 |
3430 ms |
2.13 x |
By doing a series of small improvements I was able to improve the query time in TestLargeProvidersSet by around 2x.