-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(buffer): Spool compressed envelopes (#4171)
Enable compression for spooled envelopes (experimental spooler). As the results of [this PR](#4162) showed, avg. compression ratio is 4x on PoPs and 6x on processing relays. Average compression time is 10 microseconds and 30 microseconds, respectively. This PR also changes how disk writes are batched: It counts encoded bytes instead of number of envelopes to decide whether to write a batch to disk. For disk _reads_, still count the number of envelopes for now. Using bytes for read batching would require [window functions](https://www.sqlite.org/windowfunctions.html) or similar. --------- Co-authored-by: Riccardo Busetti <[email protected]>
- Loading branch information
1 parent
277c54d
commit f0d01aa
Showing
8 changed files
with
329 additions
and
248 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
Oops, something went wrong.