Support buffer providing for payloadSizeLimiter #155
Labels
No Label
P0
P1
P2
P3
good first issue
pool
Infrastructure
blocked
bug
config
discussion
documentation
duplicate
enhancement
go
help wanted
internal
invalid
kludge
observability
perfomance
question
refactoring
wontfix
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-sdk-go#155
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
Is your feature request related to a problem? Please describe.
When we use client cut for streaming objects whose size is greater than MaxObjectSize in network the
runtime.GrowSlice
for this starts consuming a lot of resources. It would be nice to have some kind of reusing this buffer.Describe the solution you'd like
Since we cannot just reuse this buffer inside of
payloadSizeLimiter
(when object is formed client code can do anything with it and we have no guarantee that this payload won't be changed), we can provide to it some function/struct/interface that will be invoked to get new buffer. This way client code be able to reuse such buffer if it's sure that it's safe.