-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change the complexity scaling of reschedule recovered search (#677)
The reschedule recovered while searching, for each expiration set, was performing a loop Recovering number of times to look up in a set of Expiring sectors. This leads to scaling `O(recovering*log(expiring))`. Following PR changes it such that the work performed is `O(expiring*log(recovering))`. This should improve the gas usage as on expectation there are 3-5 sectors expiring in any given queue. Signed-off-by: Jakub Sztandera <[email protected]>
- Loading branch information
Jakub Sztandera
authored
Sep 23, 2022
1 parent
2501329
commit d7eacef
Showing
1 changed file
with
40 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters