client: Optimize signature buffer pool #666
Labels
blocked
Can't be done because of something
client
Issue related to the client
discussion
Open discussion of some problem
enhancement
Improving existing functionality
Is your feature request related to a problem? Please describe.
Client
allows to specify buffer pool for signing defaulting toneofs-sdk-go/client/client.go
Lines 96 to 105 in b312ddb
to sign any request, client selects an arbitrary buffer from the pool. If this buffer has sufficient size to encode the signed request parts, they are written into it. Otherwise, temp buffer of needed size is allocated for each part via
make
i see following drawbacks of this approach:
make
-allocated buffers aint pooled2 just does not allow reusing the buffer. 1 may worsen caching in some cases:
Describe the solution you'd like
Describe alternatives you've considered
no except keep as it is
Additional context
The text was updated successfully, but these errors were encountered: