forked from hypermodeinc/badger
-
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.
Speed up StreamWriter (hypermodeinc#825)
Use a goroutine to split up the serial part of writing in StreamWriter to allow another core to work on the table encoding. On my desktop, this can write at the rate of 200MBps (1.6Gbps), finishing 1B keys (16B keys, 16B values) in around 3m20s. Changes: * Use a goroutine to split up the serial part of writing in StreamWriter to speed things up. * Limit to 3 pending requests at a time. * Use as many goroutines to process requests as the number of streams. * Update badger.fill tool to send writes to streamwriter concurrently. * Do batching based on size instead of count. * Set the value log head correctly.
- Loading branch information
1 parent
e9447c9
commit 1725096
Showing
2 changed files
with
129 additions
and
57 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
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