transformer: Allow to provide size hint #188
No reviewers
TrueCloudLab/storage-core-developers
TrueCloudLab/storage-services-committers
TrueCloudLab/storage-services-developers
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
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-sdk-go#188
Loading…
Reference in a new issue
No description provided.
Delete branch "fyrchik/frostfs-sdk-go:transformer-size-hint"
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?
For big objects with known size we can optimize allocation patterns
by providing size hint. As with any hint, it does not affect transformer
functionality: slices with capacity > MaxSize are never allocated.
Signed-off-by: Evgenii Stratonikov e.stratonikov@yadro.com
This could aleviate perfomance problems with client cut on s3 gw cc @alexvanin @dkirillov
It also can be used for #155, to allocate buffers of known size.
09f0f4f087
tof21d5c99b8
Rebased on master, should fix tests.