DEFLATE
The compression algorithm inside gzip and zip files, which replaces repeated byte sequences with short references to earlier ones.
In more detail
It looks back over a sliding window of recent data to find repeats. zlib and gzip add headers and checksums around raw DEFLATE data.
Related terms
- gzip — The command that compresses a single file and replaces it with a smaller .gz version; gunzip reverses it.
- zlib — A widely used C library for DEFLATE and gzip compression; in Node.js, node:zlib also provides Brotli.
- compression — Encoding data in fewer bytes by removing repetition, so it takes less space and less time to send.
Taught in
- Native Compression: node:zlib & Streaming Codecs — Node.js Internals & Backend Services