Merge pull request #68 from RocherKong/master
Use the synchronization method as the first choice
This commit is contained in:
commit
c8537541c3
|
|
@ -36,3 +36,7 @@ BinarySearch | 52.22 us | 0.6403 us | 0.5347 us | 5 |
|
||||||
BinarySearch_Async | 53.03 us | 1.0271 us | 0.9608 us | 6 |
|
BinarySearch_Async | 53.03 us | 1.0271 us | 0.9608 us | 6 |
|
||||||
BtreeSearch | 19.05 us | 0.2464 us | 0.2305 us | 3 |
|
BtreeSearch | 19.05 us | 0.2464 us | 0.2305 us | 3 |
|
||||||
BtreeSearch_Async | 19.40 us | 0.3820 us | 0.6690 us | 4 |
|
BtreeSearch_Async | 19.40 us | 0.3820 us | 0.6690 us | 4 |
|
||||||
|
|
||||||
|
|
||||||
|
Because the speed of the program lookup has been fast, the asynchronous method here is just the packaging of the synchronization method, the essence is the synchronization method, the asynchronous method is not recommended, and asynchronous will bring the performance loss, unless you need the asynchronous call format.
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue