forked from solana-labs/solana
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
accounts-db: send batches of accounts to the background hasher (solan…
…a-labs#810) Instead of sending accounts individually, send batches of accounts for background hashing. Before this change we used to send accounts individually, and the background thread used to do: loop { let account = receiver.recv(); account.hash(); // go back to sleep in recv() } Because most accounts are small and hashing them is very fast, the background thread used to sleep a lot, and required many syscalls from the sender in order to be woken up. Batching reduces the number of syscalls.
- Loading branch information
1 parent
9de8214
commit 3872454
Showing
1 changed file
with
24 additions
and
19 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