Comments (1)
Both methods will work,
but they do not produce the same artifact.
The first method (streaming) will produce a single continuous frame, of unspecified content length (discovered at the end).
The second method will produce many compressed frames of decompressed size 5 MB each, and simply concatenate them back to back.
Both artifacts will be decompressible, and will regenerate the same source.
But the first method (streaming) is likely going to compress better, more or less substantially depending on compression parameters (difference is probably going to be larger at level 19 than at level 1). On the other hand, streaming requires maintaining a state throughout the complete process.
Streaming tends to be preferred when there is a continuous flow of input to compress,
while concatenation of independent frames tends to be preferred when there is an irregular production of input, with some delay between consecutive batches.
from zstd.
Related Issues (20)
- Can zstd decompress files such as .zst.001, .zst.002, and so on? HOT 5
- Question: how does dictionary achieve superior compression for small data? HOT 6
- Any way to skip incorrect data and try next data block when decompressing? HOT 3
- higher zstd compression level resulting in larger compressed data HOT 2
- aarch64/x86 causing different compression outputs with row match finder HOT 2
- ZStd 64 bit library compiles with VS 2022 crashes on old CPUs HOT 1
- Weird code size when -mbmi2 or -mno-bmi2 is specified HOT 2
- Compressing and decompressing with dictionaries, between different zstd versions HOT 3
- Question in understanding Zstd Digested Dictionaries HOT 2
- Take fixes of zstd tool before it included in latest HOT 4
- question: does `zstd_decompress` function has tolerance of data race HOT 1
- Provide Linux & Darwin (macOS) builds via GitHub Releases
- Disable auto vectorization of xxhash64, when AVX512 is present. HOT 5
- No check if Reserved of Symbol_Compression_Modes is 0 HOT 8
- Spec cleanup: Should fixup behavior when repeat1-1==0 be specified or changed to an error? HOT 3
- Strange tags make automation crazy HOT 1
- Modernize macros to use `do { } while (0)` instead of `{ }` HOT 9
- [question] Seek for insights on the suitable case for zstd dictionary compression HOT 5
- zstd not buildable with PAC/BTI becauseof `huf_decompress_amd64.S` HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zstd.