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.
accounts-db: send batches of accounts to the background hasher
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
2c0bea0
commit 16d258d
Showing
1 changed file
with
23 additions
and
18 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