-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Streaming<T> reduce monomorphization cost
This was seen using `cargo llvm-lines`. The following functions where high in generated lines with a few copies (~ one copy by send message type). - <tonic::codec::decode::Streaming<T> as futures_core::stream::Stream>::poll_next - tonic::codec::decode::Streaming<T>::decode_chunk Both of them contains a large part of code that is actually not impacted by the type parameter and so can be reworked a bit to improve code generation (should help produce small binaries and reduce build time).
- Loading branch information
Guilhem Vallat
committed
Nov 26, 2021
1 parent
754403c
commit 8d4917a
Showing
1 changed file
with
141 additions
and
91 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