forked from grpc/grpc-swift
-
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.
Use sync operations for configuring the client pipeline (grpc#1160)
Motivation: We can use synchronous pipeline operations to save some allocations. We converted to this new API in a handful of places in grpc#1149 but this one was missed. While NIOs async pipeline operations now use synchronous operations where possible (i.e. if already on the right event loop), they rely on having a cached void future to save allocations. This isn't yet supported by NIOTS, so we'll only save allocations there. Modifications: - Synchronously configure the client connection channel pipeline Result: Fewer allocations (when using NIOTS).
- Loading branch information
Showing
2 changed files
with
57 additions
and
60 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