Skip to content

Allocate memory dynamically #4541

@HT-7

Description

@HT-7

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).

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions