Do not store compressed uncompressible data #209
Labels
No labels
P0
P1
P2
P3
badger
frostfs-adm
frostfs-cli
frostfs-ir
frostfs-lens
frostfs-node
good first issue
triage
Infrastructure
blocked
bug
config
discussion
documentation
duplicate
enhancement
go
help wanted
internal
invalid
kludge
observability
perfomance
question
refactoring
wontfix
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-node#209
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?
Zstd does not allow calculating supposed compressed data length.
However, if compressed data is bigger than uncompressed one, we can store uncompressed, should save us storage space and CPU cycles on decoding.
Should we "try" compressing some amount of payload and stop doing it when we see it makes no sense?
I am not sure it will be faster, our objects have maximum size ~100MiB, synchronization efforts and trying to mess with zstd internals (which is parallel) can easily make it slower and harder to maintain.
I was thinking about using
sync.Pool
to avoid allocations, but first benchmarks showed no improvements.Closed via #297