-
Notifications
You must be signed in to change notification settings - Fork 420
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move client serialization into the transport handler
Motivation: Moving the client serialization into transport handler allows us to get rid of an unspecialized generic handler. Modifications: - Add an 'AnySerializer' and 'AnyDeserializer', this is unfortunate but necessary since 'ClientTransport' is generic over 'Request' and 'Response' rather than their respective (de/)serializer. Changing this would involve changing the generic constraints on all of the client call objects. - Move (de/)serialization into the 'ClientTransport' - Add a reverse codec for 'fake' transport Result: 3.5% fewer instructions in the unary_10k_small_requests benchmark.
- Loading branch information
Showing
7 changed files
with
273 additions
and
47 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
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.