issues
search
trpc-group
/
trpc-go
A pluggable, high-performance RPC framework written in golang
Other
753
stars
85
forks
source link
{trpc, attachment}: pre-check empty attachment while getting or setting to avoid memory allocation
#74
Closed
liuzengh
closed
9 months ago
liuzengh
commented
9 months ago
return false if getting empty attachment to avoid memory allocation in io.ReadAll
set non-nil server request attachment to avoid memory allocation
rename: GetClientRequestAttachment => ClientRequestAttachment, GetServerResponseAttachment => ServerResponseAttachment