ConnectRPC Production Optimization and Performance Tuning#53
ConnectRPC Production Optimization and Performance Tuning#53InboraStudio wants to merge 1 commit intoanthropics:mainfrom
Conversation
|
All contributors have signed the CLA ✍️ ✅ |
|
I have read the CLA Document and I hereby sign the CLA |
|
Did you record any benchmark results to see whether the inlining hints make a difference? |
|
Thanks for putting this together and for sharing the microbenchmark numbers - the effort is appreciated, and reaching for Before landing annotations like this, though, I wanted to check if the improvement is noticeable in a realistic end-to-end benchmark, not a tight per-function loop. A 1000-iter loop that calls nothing but So I ran your branch against
Unfortunately, there's no consistent improvement across the various request/response shapes. A few specifics on the annotations themselves, independent of the benchmark result:
The policy I've been trying to follow for this code is to only add Thanks again for the time you put in. |




Cleaned up string handling (switched to
.to_string()/.into()where it makes sense) to avoid extra allocations. Added ~40+#[inline]hints across hot paths (errors, codec, envelope, handler, etc.) to cut call overhead in critical loops. Also did minor formatting + cleanup.