Array ( [0] => {{Refimprove|date=March 2021}}{{short description|DEFLATE codec library}} [1] => {{Lowercase title}} [2] => {{distinguish|Z-Library}} [3] => {{Infobox software [4] => | name = zlib [5] => | logo = [[Image:Zlib 3D green.svg|300px|zlib logo]] [6] => | released = {{Start date|1995|05|01|df=yes}} [7] => | latest release version = {{wikidata|property|reference|P348}} [8] => | latest release date = {{start date and age|{{wikidata|qualifier|P348|P577}}}} [9] => | programming language = [[C (programming language)|C]] [10] => | operating system = [[Cross-platform software|Cross-platform]] [11] => | genre = [[Data compression]] [12] => | license = [[zlib License]] [13] => | website = {{URL|zlib.net}} [14] => }} [15] => [16] => '''zlib''' ({{IPAc-en|'|z|i:|l|I|b}} or "[[zeta]]-lib", {{IPAc-en|'|z|i:|t|@|,|l|I|b}}){{Cite book|url=https://books.google.com/books?id=hwJQOwg-MGYC&q=zeta|title=The Linux Cookbook, 2nd Edition: Tips and Techniques for Everyday Use|first=Michael|last=Stutz|date=October 22, 2004|publisher=No Starch Press|isbn=9781593270315|via=Google Books}}{{Cite book |last2=Hall |first2=John R. |url=https://books.google.com/books?id=7eAPUdU3hRUC&q=zlib+zeelib&pg=PA68 |title=Programming Linux Games |date=October 22, 2001 |publisher=No Starch Press |isbn=9781886411494 |via=Google Books |author1=Loki Software}} is a [[library (computing)|software library]] used for [[data compression]] as well as a data format. zlib was written by [[Jean-loup Gailly]] and [[Mark Adler]] and is an [[abstraction (computer science)|abstraction]] of the [[DEFLATE]] compression algorithm used in their [[gzip]] file compression program. zlib is also a crucial component of many software platforms, including [[Linux]], [[macOS]], and [[iOS]]. It has also been used in gaming consoles such as the [[PlayStation 4]], [[PlayStation 3]], [[Wii U]], [[Wii]], [[Xbox One]] and [[Xbox 360]]. [17] => [18] => The first public version of Zlib, 0.9, was released on 1 May 1995 and was originally intended for use with the [[libpng]] image library. It is [[free software]], distributed under the [[zlib License]]. [19] => [20] => == Capabilities == [21] => [22] => === Encapsulation === [23] => Raw [[DEFLATE]] compressed data (RFC 1951){{cite IETF |rfc=1951}} are typically written with a zlib or gzip wrapper encapsulating the data, by adding a header and footer. This provides stream identification and error detection that are not provided by the raw DEFLATE data. [24] => [25] => The zlib wrapper (RFC 1950){{cite IETF |rfc=1950}} is smaller than the gzip wrapper (RFC 1952),{{cite IETF |rfc=1952}} as the latter stores a file name and other file system information. [26] => [27] => === Algorithm === [28] => {{As of|2018|9}}, zlib only supports one algorithm, called [[DEFLATE]], which uses a combination of a variation of [[LZ77 and LZ78#LZ77|LZ77]] (Lempel–Ziv 1977) and [[Huffman coding]].[https://tools.ietf.org/html/rfc1951 rfc1951] This algorithm provides good compression on a wide variety of data with minimal use of system resources. This is also the algorithm used in the [[Zip (file format)|Zip archive format]]. The header makes allowance for other algorithms, but none are currently implemented. [29] => [30] => === Resource use === [31] => zlib provides facilities for control of processor and memory use. A compression level value may be supplied that trades speed for compression. There are also facilities for conserving memory, useful in restricted memory environments, such as some embedded systems. [32] => [33] => === Strategy === [34] => The compression can be optimized for specific types of data. If one is using the library to always compress specific types of data, then using a specific strategy may improve compression and performance. For example, if the data contain long lengths of repeated bytes, the [[run-length encoding]] (RLE) strategy may give good results at a higher speed. For general data, the default strategy is preferred. [35] => [36] => === Error handling === [37] => Errors in compressed data may be detected and skipped. Further, if "full-flush" points are written to the compressed stream, then corrupt data can be skipped, and the decompression will resynchronize at the next flush point—although no error recovery of the corrupt data is provided. Full-flush points are useful for large data streams on unreliable channels, where some data loss is unimportant, such as in some multimedia applications. However, creating many flush points can affect the speed as well as the amount (ratio) of compression. [38] => [39] => === Data length === [40] => There is no limit to the length of data that can be compressed or decompressed. Repeated calls to the library allow an unlimited number of blocks of data to be handled. Some ancillary code (counters) may suffer from overflow for long data streams, but this does not affect the actual compression or decompression. [41] => [42] => When compressing a long (or infinite) data stream, it is advisable to write regular full-flush points. [43] => [44] => == Applications == [45] => Today, zlib is something of a ''[[de facto]]'' [[Standardization|standard]], to the point that zlib and DEFLATE are often used interchangeably in standards documents, with thousands of applications relying on it for compression, either directly or indirectly.{{Citation|title = zlib Applications|url = http://zlib.net/apps.html|date = 2002-04-18|first1 = Jean-loup|last1 = Gailly|first2 = Mark|last2 = Adler}} These include: [46] => * The [[Linux kernel]], where zlib is used to implement compressed network protocols, compressed [[file system]]s, and to decompress the kernel image at boot time. [47] => * [[GNU Binutils]] and [[GNU Debugger]] (GDB) [48] => * [[libpng]], the [[reference implementation]] for the [[Portable Network Graphics|PNG]] image format, which specifies DEFLATE as the stream compression for its [[bitmap]] data. [49] => * [[libwww]], an API for web applications like [[web browser]]s. [50] => * The [[Apache HTTP Server]], which uses zlib to implement [[HTTP compression|HTTP/1.1]]. [51] => * Similarly, the [[cURL]] library uses zlib to decompress HTTP responses.{{Cite web|url=https://stackoverflow.com/questions/26244134/why-does-curl-use-zlib|title=c++ - Why does cURL use zlib?|website=Stack Overflow}} [52] => * The [[OpenSSH]] client and server, which rely on zlib to perform the optional compression offered by the [[Secure Shell]] protocol. [53] => * The [[OpenSSL]] and [[GnuTLS]] security libraries, which can optionally use zlib to compress [[Transport Layer Security|TLS]] connections. [54] => * The [[FFmpeg]] multimedia library, which uses zlib to read and write the DEFLATE-compressed parts of [[Digital container format|stream formats]], such as [[Matroska]]. [55] => * The [[rsync]] remote file synchronizer, which uses zlib to implement optional protocol compression. [56] => * The [[dpkg]] and [[RPM Package Manager|RPM]] [[package manager]]s, which use zlib to unpack files from compressed software packages. [57] => * The [[Apache Subversion]] and [[Concurrent Versions System|CVS]] [[version control]] systems, which use zlib to compress traffic to and from remote repositories. [58] => * The [[Apache ORC]] column-oriented data storage format use ZLib as its default compression method.https://blog.cloudera.com/orcfile-in-hdp-2-better-compression-better-performance/ cite orc.compress=Zlib as default. [59] => * The [[Git]] [[version control]] system uses zlib to store the contents of its data objects (blobs, trees, commits and tags). [60] => * The [[PostgreSQL]] [[Relational database#RDBMS|RDBMS]] uses zlib with custom dump format (pg_dump -Fc) for database backups. [61] => * The class System.IO.Compression.DeflateStream of the Microsoft [[.NET Framework]] 2.0 and higher.[http://msdn.microsoft.com/en-us/library/system.io.compression.deflatestream(v=vs.110).aspx System.IO.Compression.DeflateStream]. MSDN Library. [62] => * The "deflate" utility in TORNADO as part of [[VxWorks]] Operating System made by [[Wind River Systems]] uses zlib to compress boot ROM images. [63] => * {{man|1|zlib-flate|Debian||inline}}, raw zlib compression program, part of [https://packages.debian.org/sid/amd64/qpdf/filelist qpdf] [64] => * The [[MySQL]] [[Relational database#RDBMS|RDBMS]] uses ZLib LZ77 for compression in [[InnoDB]] Tables {{Cite web|url=https://dev.mysql.com/doc/refman/8.0/en/innodb-compression-internals.html|title=MySQL :: MySQL 8.0 Reference Manual :: 15.9.1.5 How Compression Works for InnoDB Tables|website=dev.mysql.com}} [65] => [66] => [67] => zlib is also used in many embedded devices, such as the Apple [[iPhone]] and Sony [[PlayStation 3]], because the code is portable, liberally licensed, and has a relatively small memory footprint. [68] => [69] => === Forks === [70] => A commonly used library built on an old codebase, zlib is also frequently [[Fork (software development)|forked]] by third-parties that claim improvements to this library: [71] => * [[Intel]] has a high-performance fork of zlib.{{cite web |title=github Intel ZLIB |url=https://github.com/intel/zlib |website=github |access-date=25 January 2024 |language=en |date=25 January 2024}} [72] => * [[CloudFlare]] maintains a high-performance fork with "massive" improvements.{{cite web |title=Fighting Cancer: The Unexpected Benefit Of Open Sourcing Our Code |url=https://blog.cloudflare.com/cloudflare-fights-cancer/ |website=The Cloudflare Blog |language=en |date=8 July 2015}} [73] => * zlib-ng is a zlib replacement fork for "next generation" systems. It removes workaround code for compilers that do not support [[ANSI C]], integrates Cloudflare and Intel optimizations, adds [[hardware acceleration]] ([[SIMD]] and [[intrinsic function]]s), and uses [[code sanitizer]]s, [[fuzzing]], and [[code coverage]] to help find bugs.{{cite web |last1=Rosbach |first1=HK |title=zlib-ng/zlib-ng: zlib replacement with optimizations for "next generation" systems. |url=https://github.com/zlib-ng/zlib-ng |website=GitHub |publisher=zlib-ng |date=24 February 2023}} [74] => [75] => == See also == [76] => {{Portal|Free and open-source software}} [77] => * [[DEFLATE]] [78] => * [[gzip]] [79] => * [[LZ77 and LZ78#LZ77|LZ77 and LZ78 § LZ77]] [80] => * [[Zip (file format)]] [81] => * [[zlib License]] [82] => * [[Zopfli]] [83] => * [[List of archive formats]] [84] => [85] => == References == [86] => {{Reflist|30em}} [87] => [88] => == External links == [89] => [101] => * {{Official website|//zlib.net}} [102] => [103] => [104] => [[Category:1995 software]] [105] => [[Category:C (programming language) libraries]] [106] => [[Category:Free computer libraries]] [107] => [[Category:Free data compression software]] [108] => [[Category:Free software programmed in C]] [109] => [[Category:Software using the zlib license]] [] => )
good wiki

Zlib

Zlib is a well-known software library used for data compression. It was developed by Jean-Loup Gailly and Mark Adler and was first released in 1995.

More about us

About

It was developed by Jean-Loup Gailly and Mark Adler and was first released in 1995. Zlib provides a simple and efficient compression algorithm that can be easily integrated into various applications and operating systems. The library uses the DEFLATE algorithm, which is a combination of LZ77 and Huffman coding techniques. DEFLATE offers good compression ratios and fast decompression speeds, making it widely used in different domains such as web servers, embedded systems, and file compression utilities. Zlib includes functions for both compression and decompression, providing programmers with an easy-to-use interface. It supports various compression levels and also provides options for modifying compression parameters. The library is designed to be portable and can be used on a wide range of platforms, including Unix, Windows, and even embedded systems. Since its release, Zlib has gained popularity and has been widely adopted by many software developers and organizations. It is a free and open-source software, distributed under the zlib License, which allows both commercial and non-commercial use without any restrictions. The library has become an important component in many software projects, serving as a standard method for compressing and decompressing data. It is used in popular applications like the Linux kernel, Apache HTTP server, and the PNG image format. Overall, Zlib has proven to be a reliable and efficient compression library, providing developers with an easy-to-use solution for data compression and decompression. Its widespread usage and open-source nature have made it a significant tool in the field of data compression.

Expert Team

Vivamus eget neque lacus. Pellentesque egauris ex.

Award winning agency

Lorem ipsum, dolor sit amet consectetur elitorceat .

10 Year Exp.

Pellen tesque eget, mauris lorem iupsum neque lacus.