Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set S2 writer concurrency to 1 (#4570)
By default the S2 library defaults to a concurrency level of `GOMAXPROCS`, which forces the library to run extra goroutines to manage asynchronous flushes. As we only ever have one goroutine (the client writer) using a given S2 writer, reducing the concurrency down to 1 helps a bit with overheads, slightly reduces allocations and slightly improves throughput. Signed-off-by: Neil Twigg <neil@nats.io>
- Loading branch information
Showing
2 changed files
with
101 additions
and
3 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