Support buffer providing for payloadSizeLimiter #155
Labels
No labels
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 project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-sdk-go#155
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. 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.