forked from solana-labs/solana
-
Notifications
You must be signed in to change notification settings - Fork 265
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add candidates by sorted keys, decreasing number of lock acquires
This is a minor optimization of how new cleaning candidates are created in the candidates list. The candidate bin lock is acquired only once for each bin because the pubkeys are sorted by bins, and previously unlocked bin is reused until pubkeys from a new bin start being added to the candidates list.
- Loading branch information
Showing
1 changed file
with
26 additions
and
3 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