facebook / facebook/zstd

Allocate memory dynamically

Offen
#4,541 1 Kommentar 0 Reaktionen 1 zugewiesene Person Beansprucht von @Cyan4973 Auf GitHub ansehen
Vorherrschende Sprache
C
Sterne
27.9k
Forks
2.6k
Ø Merge
1 T. 3 Std.
Gemergte PRs (30 T.)
8

Beschreibung

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

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.