Deflate
In computing, Deflate (stylized as DEFLATE) is a lossless data compression algorithm that uses a combination of LZ77 and Huffman coding.[13] It was designed by Phil Katz, for version 2 of his PKZIP archiving tool.[src] Deflate was later specified in Request for Comments (RFC) 1951 (1996).[src] Katz also designed the original algorithm used to construct Deflate streams.[src] This algorithm received software patent , assigned to PKWare, Inc.[src] As stated in the RFC document, an algorithm producing Deflate files was widely thought to be implementable in a manner not covered by patents.[src] This led to its widespread use; for example, in the zlib data format, gzip file format, Portable Network Graphics (PNG) image file, and the ZIP file format for which Katz originally designed it.[2] The patent has since expired.[src]
In computing, Deflate (stylized as DEFLATE) is a lossless data compression algorithm that uses a combination of LZ77 and Huffman coding.[13] It was designed by Phil Katz, for version 2 of his PKZIP archiving tool.[src] Deflate was later specified in Request for Comments (RFC) 1951 (1996).[src] Katz also designed the original algorithm used to construct Deflate streams.[src] This algorithm received software patent , assigned to PKWare, Inc.[src] As stated in the RFC document, an algorithm producing Deflate files was widely thought to be implementable in a manner not covered by patents.[src] This led to its widespread use; for example, in the zlib data format, gzip file format, Portable Network Graphics (PNG) image file, and the ZIP file format for which Katz originally designed it.[2] The patent has since expired.[src] == Block structure == Deflate compression takes any sequence of bytes and outputs a sequence of blocks (commonly called Deflate stream).[2] Deflate decompression takes a sequence of blocks and outputs the original sequence of bytes.[2] Endianness is little-endian.[src] Bit 0 is the least significant bit in a byte.[src] Each block has a 3-bit header with two fields: BFINAL (first bit): 1 if this is the last block in the sequence, else 0 .[src] BTYPE (next two bits): Block type 00 : No compression (sometimes called stored).[src] Any bits up to the next byte boundary are ignored.[src] The rest of the block consists of 16-bit LEN, 16-bit NLEN (one's complement of LEN), and LEN bytes of uncompressed data, i.e.[src] up to 65,535 ( ) bytes.[src] Useful for incompressible data (e.g.[src] high-entropy, random, or already compressed), adding minimal overhead (i.e.[src] ~5 bytes per block).[src] 01 : A static Huffman compressed block, using a pre-agreed Huffman tree defined in the RFC.[src] 10 : A dynamic Huffman compressed block, complete with the Huffman table supplied.[src] 11 : Reserved (error).[src] Most compressible data will end up being encoded using method 10 , the dynamic Huffman encoding, which produces an optimized Huffman tree customized for each block of data individually.[7] Instructions to generate the necessary Huffman tree immediately follow the block header.[src] The static Huffman option is used for short messages, where the fixed saving gained by omitting the tree outweighs the percentage compression loss due to using a non-optimal (thus, not technically Huffman) code.[7] Compression is achieved through two steps: Matching and replacing duplicate strings with pointers Replacing symbols with new, weighted symbols based on use frequency AHA363-PCIe/AHA364-PCIe/AHA367-PCIe.[src] In 2008, Comtech started producing two PCIe cards ( PCI-ID: 193f:0363 / 193f:0364 ) with a new hardware AHA3610 encoder chip.[src] The new chip was designed to be capable of a sustained 2.5 Gbit/s.[src] Using two of these chips, the AHA363-PCIe board can process Deflate at a rate of up to 5.0 Gbit/s (625 MB/s) using the two channels (two compression and two decompression).[2] The AHA364-PCIe variant is an encode-only version of the card designed for out-going load balancers and instead has multiple register sets to allow 32 independent virtual compression channels feeding two physical compression engines.[16] Linux, Microsoft Windows, and OpenSolaris kernel device drivers are available for both of the new cards, along with a modified zlib system library so that dynamically linked applications can automatically use the hardware support without internal modification.[14] The AHA367-PCIe board ( PCI-ID: 193f:0367 ) is similar to the AHA363-PCIe but uses four AHA3610 chips for a sustained compression rate of 10 Gbit/s (1250 MB/s).[src] Unlike the AHA362-PCIX, the decompression engines on the AHA363-PCIe and AHA367-PCIe boards are fully deflate compliant.[2] Nitrox and Octeon processors from Cavium, Inc.[src] contain high-speed hardware deflate and inflate engines compatible with both ZLIB and GZIP with some devices able to handle multiple simultaneous data streams.[2] HDL-Deflate GPL FPGA implementation.[src] ZipAccel-C from CAST Inc.[src] This is a Silicon IP core supporting Deflate, Zlib and Gzip compression.[2] ZipAccel-C can be implemented in ASIC or field-programmable gate array (FPGAs), supports both Dynamic and Static Huffman tables, and can provide throughputs in excess of 100 Gbit/s.[src] The company offers compression/decompression accelerator board reference designs for Intel FPGA (ZipAccel-RD-INT) and Xilinx FPGAs (ZipAccel-RD-XIL).[2] Intel Communications Chipset 89xx Series (Cave Creek) for the Intel Xeon E5-2600 and E5-2400 Processor Series (Sandy Bridge-EP/EN) supports hardware compression and decompression using QuickAssist Technology.[2] Depending on the chipset, compression and decompression rates of 5 Gbit/s, 10 Gbit/s, or 20 Gbit/s are available.[2] IBM z15 CPUs incorporate an improved version of the Nest Accelerator Unit (NXU) hardware acceleration from the zEDC Express input/output (I/O) expansion cards used in z14 systems for hardware Deflate compression and decompression as specified by RFC1951.[2] Starting with the POWER9 architecture, IBM added hardware support for compressing and decompressing Deflate (as specified by RFC 1951) to the formerly crypto-centric Nest accelerator (NX) core introduced with POWER7+.[14] This support is available to programs running with AIX 7.2 Technology Level 4 Expansion Pack or AIX 7.2 Technology Level 5 Service Pack 2 through the zlibNX library.[7]
54 sentences · 54 cited inline · 16 references stored
References
- Supported formats . WHATWG Compression . · retrieved 2026-09-26 · rev 1377071705
Cite this reference
MLA "Supported formats . WHATWG Compression ." Supported formats. 2026-09-26. https://en.wikipedia.org/w/index.php?oldid=1377071705. Accessed 26 November 2026.
Chicago "Supported formats . WHATWG Compression ." Supported formats. 2026-09-26. https://en.wikipedia.org/w/index.php?oldid=1377071705.
APA Supported formats. (2026). Supported formats . WHATWG Compression . Retrieved November 26, 2026, from https://en.wikipedia.org/w/index.php?oldid=1377071705
- libdeflate . Heavily optimized library for DEFLATE/zlib/gzip compression and decompression . · retrieved 2026-09-26 · rev 1377071705
Cite this reference
MLA "libdeflate . Heavily optimized library for DEFLATE/zlib/gzip compression and decompression ." libdeflate. 2026-09-26. https://en.wikipedia.org/w/index.php?oldid=1377071705. Accessed 26 November 2026.
Chicago "libdeflate . Heavily optimized library for DEFLATE/zlib/gzip compression and decompression ." libdeflate. 2026-09-26. https://en.wikipedia.org/w/index.php?oldid=1377071705.
APA libdeflate. (2026). libdeflate . Heavily optimized library for DEFLATE/zlib/gzip compression and decompression . Retrieved November 26, 2026, from https://en.wikipedia.org/w/index.php?oldid=1377071705
- Mazzoleni, Andrea. amadvance/advancecomp . GitHub . 21 February 2023. · retrieved 2026-09-26 · rev 1377071705
Cite this reference
MLA "Mazzoleni, Andrea. amadvance/advancecomp . GitHub . 21 February 2023." Mazzoleni, Andrea. 2026-09-26. https://en.wikipedia.org/w/index.php?oldid=1377071705. Accessed 26 November 2026.
Chicago "Mazzoleni, Andrea. amadvance/advancecomp . GitHub . 21 February 2023." Mazzoleni, Andrea. 2026-09-26. https://en.wikipedia.org/w/index.php?oldid=1377071705.
APA Mazzoleni, Andrea. (2026). Mazzoleni, Andrea. amadvance/advancecomp . GitHub . 21 February 2023. Retrieved November 26, 2026, from https://en.wikipedia.org/w/index.php?oldid=1377071705
- www-ssl.intel.com . · retrieved 2026-09-26 · rev 1377071705
Cite this reference
MLA "www-ssl.intel.com ." www-ssl. 2026-09-26. https://en.wikipedia.org/w/index.php?oldid=1377071705. Accessed 26 November 2026.
Chicago "www-ssl.intel.com ." www-ssl. 2026-09-26. https://en.wikipedia.org/w/index.php?oldid=1377071705.
APA www-ssl. (2026). www-ssl.intel.com . Retrieved November 26, 2026, from https://en.wikipedia.org/w/index.php?oldid=1377071705
- Introducing the IBM z15 - The enterprise platform for mission-critica . · retrieved 2026-09-26 · rev 1377071705
Cite this reference
MLA "Introducing the IBM z15 - The enterprise platform for mission-critica ." 2026-09-26. https://en.wikipedia.org/w/index.php?oldid=1377071705. Accessed 26 November 2026.
Chicago "Introducing the IBM z15 - The enterprise platform for mission-critica ." 2026-09-26. https://en.wikipedia.org/w/index.php?oldid=1377071705.
APA encyclopegia.org. (2026). Introducing the IBM z15 - The enterprise platform for mission-critica . Retrieved November 26, 2026, from https://en.wikipedia.org/w/index.php?oldid=1377071705
- Lasc. IBM z15 (8562) Technical Guide, Page 97 . retrieved 2021-11-01 · retrieved 2021-10-31 · rev 1377071705
Cite this reference
MLA "Lasc. IBM z15 (8562) Technical Guide, Page 97 . retrieved 2021-11-01." Lasc. 2021-10-31. https://en.wikipedia.org/w/index.php?oldid=1377071705. Accessed 26 November 2026.
Chicago "Lasc. IBM z15 (8562) Technical Guide, Page 97 . retrieved 2021-11-01." Lasc. 2021-10-31. https://en.wikipedia.org/w/index.php?oldid=1377071705.
APA Lasc. (2021). Lasc. IBM z15 (8562) Technical Guide, Page 97 . retrieved 2021-11-01. Retrieved November 26, 2026, from https://en.wikipedia.org/w/index.php?oldid=1377071705
- Data compression by using the zlibNX library - IBM Documentation . IBM . · retrieved 2026-09-26 · rev 1377071705
Cite this reference
MLA "Data compression by using the zlibNX library - IBM Documentation . IBM ." Data compression by using the zlibNX library - IBM Documentation. 2026-09-26. https://en.wikipedia.org/w/index.php?oldid=1377071705. Accessed 26 November 2026.
Chicago "Data compression by using the zlibNX library - IBM Documentation . IBM ." Data compression by using the zlibNX library - IBM Documentation. 2026-09-26. https://en.wikipedia.org/w/index.php?oldid=1377071705.
APA Data compression by using the zlibNX library - IBM Documentation. (2026). Data compression by using the zlibNX library - IBM Documentation . IBM . Retrieved November 26, 2026, from https://en.wikipedia.org/w/index.php?oldid=1377071705
- Exploitation of In-Core Acceleration of POWER Proc . · retrieved 2026-09-26 · rev 1377071705
Cite this reference
MLA "Exploitation of In-Core Acceleration of POWER Proc ." 2026-09-26. https://en.wikipedia.org/w/index.php?oldid=1377071705. Accessed 26 November 2026.
Chicago "Exploitation of In-Core Acceleration of POWER Proc ." 2026-09-26. https://en.wikipedia.org/w/index.php?oldid=1377071705.
APA encyclopegia.org. (2026). Exploitation of In-Core Acceleration of POWER Proc . Retrieved November 26, 2026, from https://en.wikipedia.org/w/index.php?oldid=1377071705
- Salomon, David. Data Compression: The Complete Reference . Springer . 2007. · retrieved 2026-09-26 · rev 1377071705
Cite this reference
MLA "Salomon, David. Data Compression: The Complete Reference . Springer . 2007." Salomon, David. 2026-09-26. https://en.wikipedia.org/w/index.php?oldid=1377071705. Accessed 26 November 2026.
Chicago "Salomon, David. Data Compression: The Complete Reference . Springer . 2007." Salomon, David. 2026-09-26. https://en.wikipedia.org/w/index.php?oldid=1377071705.
APA Salomon, David. (2026). Salomon, David. Data Compression: The Complete Reference . Springer . 2007. Retrieved November 26, 2026, from https://en.wikipedia.org/w/index.php?oldid=1377071705
- Binary Essence – Deflate64 . · retrieved 2026-09-26 · rev 1377071705
Cite this reference
MLA "Binary Essence – Deflate64 ." 2026-09-26. https://en.wikipedia.org/w/index.php?oldid=1377071705. Accessed 26 November 2026.
Chicago "Binary Essence – Deflate64 ." 2026-09-26. https://en.wikipedia.org/w/index.php?oldid=1377071705.
APA encyclopegia.org. (2026). Binary Essence – Deflate64 . Retrieved November 26, 2026, from https://en.wikipedia.org/w/index.php?oldid=1377071705
- Calgary Corpus · retrieved 2026-09-26 · rev 1377071705
Cite this reference
MLA "Calgary Corpus." Binary Essence – "Calgary Corpus" compression comparisons. 2026-09-26. https://en.wikipedia.org/w/index.php?oldid=1377071705. Accessed 26 November 2026.
Chicago "Calgary Corpus." Binary Essence – "Calgary Corpus" compression comparisons. 2026-09-26. https://en.wikipedia.org/w/index.php?oldid=1377071705.
APA Binary Essence – "Calgary Corpus" compression comparisons. (2026). Calgary Corpus. Retrieved November 26, 2026, from https://en.wikipedia.org/w/index.php?oldid=1377071705
- -m (Set compression Method) switch . · retrieved 2026-09-26 · rev 1377071705
Cite this reference
MLA "-m (Set compression Method) switch ." 2026-09-26. https://en.wikipedia.org/w/index.php?oldid=1377071705. Accessed 26 November 2026.
Chicago "-m (Set compression Method) switch ." 2026-09-26. https://en.wikipedia.org/w/index.php?oldid=1377071705.
APA encyclopegia.org. (2026). -m (Set compression Method) switch . Retrieved November 26, 2026, from https://en.wikipedia.org/w/index.php?oldid=1377071705
- History of Lossless Data Compression Algorithms – [https://ieeeghn.org/wiki/index.php/History_of_Lossless_Data_Compression_Algorithms#DEFLATE64 Deflate64] . · retrieved 2026-09-26 · rev 1377071705
Cite this reference
MLA "History of Lossless Data Compression Algorithms – [https://ieeeghn.org/wiki/index.php/History_of_Lossless_Data_Compression_Algorithms#DEFLATE64 Deflate64] ." History of Lossless Data Compression Algorithms – [https://ieeeghn. 2026-09-26. https://en.wikipedia.org/w/index.php?oldid=1377071705. Accessed 26 November 2026.
Chicago "History of Lossless Data Compression Algorithms – [https://ieeeghn.org/wiki/index.php/History_of_Lossless_Data_Compression_Algorithms#DEFLATE64 Deflate64] ." History of Lossless Data Compression Algorithms – [https://ieeeghn. 2026-09-26. https://en.wikipedia.org/w/index.php?oldid=1377071705.
APA History of Lossless Data Compression Algorithms – [https://ieeeghn. (2026). History of Lossless Data Compression Algorithms – [https://ieeeghn.org/wiki/index.php/History_of_Lossless_Data_Compression_Algorithms#DEFLATE64 Deflate64] . Retrieved November 26, 2026, from https://en.wikipedia.org/w/index.php?oldid=1377071705
- Deflate64 · retrieved 2026-09-26 · rev 1377071705
Cite this reference
MLA "Deflate64." zlib FAQ – [https://www. 2026-09-26. https://en.wikipedia.org/w/index.php?oldid=1377071705. Accessed 26 November 2026.
Chicago "Deflate64." zlib FAQ – [https://www. 2026-09-26. https://en.wikipedia.org/w/index.php?oldid=1377071705.
APA zlib FAQ – [https://www. (2026). Deflate64. Retrieved November 26, 2026, from https://en.wikipedia.org/w/index.php?oldid=1377071705
- Plan 9 from Bell Labs's /n/sources/plan9/sys/src/libflate . · retrieved 2026-09-26 · rev 1377071705
Cite this reference
MLA "Plan 9 from Bell Labs's /n/sources/plan9/sys/src/libflate ." 2026-09-26. https://en.wikipedia.org/w/index.php?oldid=1377071705. Accessed 26 November 2026.
Chicago "Plan 9 from Bell Labs's /n/sources/plan9/sys/src/libflate ." 2026-09-26. https://en.wikipedia.org/w/index.php?oldid=1377071705.
APA encyclopegia.org. (2026). Plan 9 from Bell Labs's /n/sources/plan9/sys/src/libflate . Retrieved November 26, 2026, from https://en.wikipedia.org/w/index.php?oldid=1377071705
- High Performance Deflate Compression with Optimizations for Genomic Data Sets . · retrieved 2026-09-26 · rev 1377071705
Cite this reference
MLA "High Performance Deflate Compression with Optimizations for Genomic Data Sets ." 2026-09-26. https://en.wikipedia.org/w/index.php?oldid=1377071705. Accessed 26 November 2026.
Chicago "High Performance Deflate Compression with Optimizations for Genomic Data Sets ." 2026-09-26. https://en.wikipedia.org/w/index.php?oldid=1377071705.
APA encyclopegia.org. (2026). High Performance Deflate Compression with Optimizations for Genomic Data Sets . Retrieved November 26, 2026, from https://en.wikipedia.org/w/index.php?oldid=1377071705
Cite this article
MLA
"Deflate." encyclopegia.org, 2026, https://encyclopegia.org/wiki/deflate. Accessed 26 November 2026.
Chicago
"Deflate." encyclopegia.org. Accessed November 26, 2026. https://encyclopegia.org/wiki/deflate.
APA
encyclopegia.org. (2026). Deflate. Retrieved November 26, 2026, from https://encyclopegia.org/wiki/deflate
Accessed November 26, 2026 · CC BY-SA 4.0 · citation page · JSON