This repository has been archived by the owner on Sep 1, 2023. It is now read-only.
forked from connectrpc/connect-go
-
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.
Cache mapping of methods to protocol handlers (connectrpc#525)
Remove allocation of an array for each request by mapping the handlers by methods. Follows pattern of caching allow method and content types. ``` │ allocs/op │ allocs/op vs base │ Connect/unary-8 247.0 ± ∞ ¹ 243.0 ± ∞ ¹ ~ (p=1.000 n=1) ² ```
- Loading branch information
1 parent
3d7bd74
commit 513111c
Showing
2 changed files
with
16 additions
and
12 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