-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rpc: use sync.Pools for snappy readers and writers
Creating a snappy.{Reader,Writer} on every compression/decompression is fairly expensive. This reduced the performance hit for enabling compression in a local 3-node cluster from 38% to 3%. See #14721
- Loading branch information
1 parent
fdc31f8
commit 0c33cee
Showing
1 changed file
with
27 additions
and
5 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