facebook / facebook/zstd

Allocate memory dynamically

Open
#4,541 1 comment 0 reactions 1 assignee Claimed by @Cyan4973 View on GitHub
Dominant language
C
Stars
27.9k
Forks
2.6k
Avg merge
1d 3h
Merged PRs (30d)
8

Description

**Is your feature request related to a problem? Please describe.**
`zst` reserves the entire specified memory shortly after starting, even if the amount of processed data is nowhere close.

**Describe the solution you'd like**
If possible, I suggest only allocating as much memory as needed at a time, rather than immediately reserving the entire specified memory.

**Describe alternatives you've considered**
This is also the behaviour of LZMA-based compressors (lzma, xz, 7z).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.