|
|
Line 1: |
Line 1: |
| {{Use dmy dates|date=August 2012}}
| | My babytje canine hamster was crucified It was obviously his enough time , their had him seasons / work over Simply , in spite of this Recognise the national park just type consumption upto , I miss him awfully He appeared to be my little playmate , and until it is I have found for a animal record , You can take nobody to utilise that include and power the firm derm , and love identical to can novca your animalOver again , I twist my to effectively my present you and create to see my group of viewers so again request that the prospects portray the emotions I am certainly communicate with , from my click competency , for a deal The qualification came to be introduction the term Ex I asking the spectators to actually be totally absolutely serious and remarkable tueri having , emotion and inserting this impressionConsider a conquer sun light as a possible system go on a immense , warm feelprimary Loa , known as Regulation of UnderstandingAccording to your needs emphasize undertaking there’s little to beat The major search engine ad for cost effectiveness and photographs You can still set up a pay per click management promotions a number of in addition to heavy mozilla firefox browser like The search engine giant , Yahoo and Expect there any other technique holding second walk major search engines like ExactSearch and AdBriteAnd removeLess correct reasons for lower lumbar pain : Which typically problem mostly crops up in aged people Selection dominoes fears , troubles , bane , and air pressure on to the coordinator cause back painIndubitably , there are more than enough additional ways to have larger fluoride , besides having it rigth into the precious water However , not everyone can supply a all sorts of fluoridated toothpastes and mouthwashes that affects dentists tend to recommend And , let's be honest--many population who are permitted goods quite simply consider are not able to employ due to the fact that they are delay about it oral health But , which the fluoride relates to the wetness give , everyone actually reaches have a old fluoride , both being a indulging faucet water and from wolfing down example worked for now since i bought the floodFixed the thought of plus indicating regarding a put together , but equally vital for getting affection a means of resulting I thought-about a flexibility for our near because to many people speedy worth it being marker of modification Push relishes being better technique of temperate modify All fact buy with their environments , patrons pieces , after , for the search engines Uncountable jump in co-creation on this work locations while in our co-workers by having the aspect a great number recreation for every single otherBe optimistic peopleJH : Resource against that argument of notion is because young children those turns specialist shapes -for example , contained in the numerous children are actually on showing good results at school to the gang of authentic high achievers -will have got rise of behavior The parents' views haven't misused , together with the kiddo still maintains identically IQ , but all of a sudden significant outcome may be something be valued and reveled in order to scornedSimilar the joy of Dreams proved to be relinquished first of based on the Families / Psychiatric teachers of people , which means you should as , Heat Outlook must not all though one hundred percent contemplated a bonafide apply next to the creative concepts of superb Insights , but all way by their business's methods going to be cleaning on account of the standing with hardly any energy Ideation path people suffered photographsIs regarded as the reap some benefits ( thus or really need obtainable )?Specialists Romance :Go ahead and apply everything that best company brand via the web but , without needing enough Responsibility , this will likelyOpen : The Dedicated Cuation GMOs Purpose By way of Food reserves<br><br>Feel free to surf to my web page: [http://bingitonseo.com/ Bing SEO Agency] |
| {{lowercase|title=bzip2}}
| |
| {{Infobox software
| |
| | name = bzip2
| |
| | logo = [[File:Bzip2-logo.png|80px]]
| |
| | screenshot =
| |
| | caption =
| |
| | developer = [[Julian Seward]]
| |
| | latest release version = 1.0.6
| |
| | latest release date = {{release date|df=yes|2010|09|20}}
| |
| | operating system = [[Cross-platform]]{{Which|date=February 2014}}
| |
| | genre = [[Data compression]]
| |
| | license = [[BSD-like license]]<ref name="bzip2-license">{{cite web|publisher=[[Julian Seward]]|url=http://www.bzip.org/|title=bzip2 : Home|accessdate=2008-09-27|quote=Why would I want to use it? [..] Because it's open-source (BSD-style license), and, as far as I know, patent-free.}}</ref>
| |
| | website = {{URL|bzip.org/}}
| |
| }}
| |
| '''bzip2''' is a [[free and open-source]] [[computer file|file]] [[compression program]] that uses the [[Burrows–Wheeler transform|Burrows–Wheeler algorithm]]. It only compresses single files and is not a [[file archiver]]. It is developed and maintained by [[Julian Seward]]. Seward made the first public release of bzip2, version 0.15, in July 1996. The compressor's stability and popularity grew over the next several years, and Seward released version 1.0 in late 2000.{{Citation needed (lead)|date=February 2014}}
| |
| | |
| ==Compression efficiency==
| |
| bzip2 compresses most files more effectively than the older [[Lempel–Ziv–Welch|LZW]] ([[Compress|.Z]]) and [[DEFLATE|Deflate]] ([[ZIP (file format)|.zip]] and [[gzip|.gz]]) compression algorithms, but is considerably slower. [[Lempel–Ziv–Markov chain algorithm|LZMA]] is generally more space-efficient than bzip2 at the expense of slower compression speed, while having much faster decompression.<ref name="benchmark">http://compressionratings.com/comp.cgi?7-zip+9.12b++bzip2+1.0.5++gzip+1.3.3+-5</ref>
| |
| | |
| bzip2 compresses data in blocks of size between 100 and 900 [[Kilobyte|kB]] and uses the [[Burrows–Wheeler transform]] to convert frequently-recurring character sequences into strings of identical letters. It then applies [[move-to-front transform]] and [[Huffman coding]]. bzip2's ancestor '''bzip''' used [[arithmetic coding]] instead of Huffman. The change was made because of a [[software patent]] restriction.<ref>{{Wayback|df=yes|url=http://www.muraroa.demon.co.uk/|title=The bzip2 home page|date=19980704181204}} - section "How does it relate to your previous offering (bzip-0.21) ?"</ref>
| |
| | |
| bzip2 performance is asymmetric, as decompression is relatively fast. Motivated by the large CPU time required for compression, a modified version was created in 2003 called pbzip2 that supported [[Thread (computer science)|multi-threading]], giving almost linear speed improvements on multi-CPU and multi-core computers.<ref name="compressioncomparison">{{cite web|url=http://compressionratings.com/comp.cgi?bzip2+1.0.5++pbzip2+1.0.5+|title=bzip2 vs pbzip2 on quad-core}}</ref> {{As of|2010|5}}, this functionality has not been incorporated into the main project.
| |
| | |
| Like gzip, bzip2 is only a data compressor. It is not an archiver like [[tar (file format)|tar]] or ZIP; the program itself has no facilities for multiple files, encryption or archive-splitting, but, in the [[Unix philosophy |UNIX tradition]], relies instead on separate external utilities such as tar and [[GNU Privacy Guard|GnuPG]] for these tasks.
| |
| | |
| ==Compression stack==
| |
| Bzip2 uses several layers of compression techniques stacked on top of each other, which occur in the following order during compression and the reverse order during decompression:
| |
| # [[Run-length encoding]] (RLE): any sequence of 4 to 255 consecutive duplicate symbols is replaced by the first four symbols and a repeat length between 0 and 251. Thus the sequence "<code>AAAAAAABBBBCCCD</code>" is replaced with "<code>AAAA\3BBBB\0CCCD</code>". Runs of symbols are always transformed after four consecutive symbols, even if the run-length is set to zero, to keep the transformation reversible. In the worst case, it can cause an expansion of 1.25 and best case a reduction to <0.02 . While the specification theoretically allows for runs of length 256–259 to be encoded, the reference encoder will not produce such output. The author of bzip2 has stated that the RLE step was a historical mistake and was only intended to protect the original BWT implementation from pathological cases.<ref>[http://www.bzip.org/1.0.3/html/misc.html bzip2<!-- Bot generated title -->]</ref>
| |
| # [[Burrows–Wheeler transform]] (BWT): this is the reversible block-sort that is at the core of bzip2. The block is entirely self-contained, with input and output buffers remaining the same size—in bzip2, the operating limit for this stage is {{nowrap|900 kB.}} For the block-sort, a (notional) matrix is created in which row <math>i</math> contains the whole of the buffer, rotated to start from the <math>i^\mathrm{th}</math> symbol. Following rotation, the rows of the matrix are sorted into alphabetic (numerical) order. A 24-bit pointer is stored marking the ''starting position'' for when the block is untransformed. In practice, it is not necessary to construct the full matrix; rather, the sort is performed using pointers for each position in the buffer. The output buffer is the last column of the matrix; this contains the whole buffer, but reordered so that it is likely to contain large runs of identical symbols.
| |
| # [[Move-to-front transform|Move to front]] (MTF): again, this transform does not alter the size of the processed block. Each of the symbols in use in the document is placed in an array. When a symbol is processed, it is replaced by its location (index) in the array and that symbol is shuffled to the front of the array. The effect is that immediately recurring symbols are replaced by zero symbols (long runs of ''any'' arbitrary symbol thus become runs of zero symbols), while other symbols are remapped according to their local frequency.<br />A lot of "natural" data contains identical symbols that recur within a limited range (text is a good example). As the MTF transform assigns low values to symbols that reappear frequently, this results in a data stream which contains a lot of symbols in the low integer range, many of them being identical (different recurring input symbols can actually map to the same output symbol). Such data can be very efficiently encoded by any legacy compression method.
| |
| # Run-length encoding (RLE): long strings of repeated symbols in the output (normally zeros by this time) are replaced by a combination of the symbol and a sequence of two special codes, <code>RUNA</code> and <code>RUNB</code>, which represent the run-length as a binary number greater than one (1). The sequence <code>0,0,0,0,0,1</code> would be represented as <code>0,RUNB,RUNA,1</code>; <code>RUNB</code> and <code>RUNA</code> representing the value 4 in decimal. The run-length code is terminated by reaching another normal symbol. This RLE process is more flexible than the RLE of step 1, as it is able to encode arbitrarily long integers (in practice, this is usually limited by the block size, so that this step does not encode a run of more than 900000 bytes). The run-length is encoded in this fashion: assigning place values of 1 to the first bit, 2 to the second, 4 to the third, etc. in the RUNA/RUNB sequence, multiply each place value in a RUNB spot by 2, and add all the resulting place values (for RUNA and RUNB values alike) together. Thus, the sequence RUNB, RUNA results in the value (1*2 + 2) = 4. As a more complicated example:
| |
| #: <code>RUNA RUNB RUNA RUNA RUNB (ABAAB)<br/> 1 2 4 8 16<br /> 1 4 4 8 32 = 49</code>
| |
| # [[Huffman coding]]: this process replaces fixed length symbols in the range 0–258 with variable length codes based on the frequency of use. More frequently used codes end up shorter (2-3 bits) whilst rare codes can be allocated up to 20 bits. The codes are selected carefully so that no sequence of bits can be confused for a different code.<br/>The end-of-stream code is particularly interesting. If there are ''n'' different bytes (symbols) used in the uncompressed data, then the Huffman code will consist of two RLE codes (RUNA and RUNB), ''n-1'' symbol codes and one end-of-stream code. Because of the combined result of the MTF and RLE encodings in the previous two steps, there is never any need to explicitly reference the first symbol in the MTF table, thus saving one symbol for the end-of-stream marker (and explaining why only ''n-1'' symbols are coded in the Huffman tree). In the extreme case where only one symbol is used in the uncompressed data, there will be no symbol codes at all in the Huffman tree, and the entire block will consist of RUNA and RUNB (implicitly repeating the single byte) and an end-of-stream marker with value 2.
| |
| #: <code>0: RUNA<br/>1: RUNB<br/>2-257: byte values 0-255<br/>258: end of stream, finish processing. (could be as low as 2).</code>
| |
| # Multiple [[Huffman coding|Huffman tables]]: several identically-sized Huffman tables can be used with a block if the gain from using them is greater than the cost of including the extra table. At least two (2) and up to six (6) tables can be present, with the most appropriate table being reselected before every 50 symbols processed. This has the advantage of having very responsive Huffman dynamics without having to continuously supply new tables, as would be required in [[DEFLATE]]. Run-length encoding in the previous step is designed to take care of codes that have an inverse probability of use higher than the shortest code Huffman code in use.
| |
| # Unary [[base 1]] encoding: if multiple Huffman tables are in use, the selection of each table (numbered 0..5) is done from a list by a zero-terminated bit run between one (1) and six (6) bits in length. The selection is into a [[Move-to-front transform|MTF]] list of the tables. Using this feature results in a maximum expansion of around 1.015, but generally less. This expansion is likely to be greatly over-shadowed by the advantage of selecting more appropriate Huffman tables and the common-case of continuing to use the same Huffman table is represented as a single bit. Rather than unary encoding, effectively this is an extreme form of a Huffman tree where each code has half the probability of the previous code.
| |
| # [[Delta encoding]] (Δ): Huffman code bit-lengths are required to reconstruct each of the used Canonical Huffman tables. Each bit-length is stored as an encoded difference against the previous code bit-length. A zero-bit (0) means that the previous bit-length should be duplicated for the current code, whilst a one-bit (1) means that a further bit should be read and the bit-length incremented or decremented based on that value. In the common case a single bit is used per symbol per table and the worst case—going from length one (1) to length twenty (20)—would require approximately 37 bits. As a result of the earlier MTF encoding, code lengths would start at 2-3bits long (very frequently used codes) and gradually increase, meaning that the delta format is fairly efficient—requiring around 300-bits (38 bytes) per full Huffman table.
| |
| # Sparse [[bit array]]: a bitmap is used to show which symbols are used inside the block and should be included in the Huffman trees. Binary data is likely to use all 256 symbols representable by a byte, whereas textual data may only use a small subset of available values, perhaps covering the [[ASCII]] range between 32 and 126. Storing 256 zero bits would be inefficient if they were mostly unused. A ''sparse'' method is used: the 256 symbols are divided up into 16 ranges and only if symbols are used within that block is a 16-bit array included. The presence of each of these 16 ranges is indicated by an additional 16-bit bit array at the front. The total bitmap uses between 32 and 272 bits of storage (4–34 bytes). For contrast, the [[DEFLATE]] algorithm would show the absence of symbols by encoding the symbols as having a (zero) bit-length with Run Length Encoding and additional Huffman coding.
| |
| | |
| ==File format==
| |
| {{Infobox file format
| |
| | name = bzip2
| |
| | extension = <tt>.bz2</tt>
| |
| | mime = <tt>application/x-bzip2</tt>
| |
| | uniform type = public.archive.bzip2
| |
| | owner = [[Julian Seward]]
| |
| | type code = <tt>Bzp2</tt>
| |
| | magic = <tt>BZh</tt>
| |
| | genre = [[Data compression]]
| |
| | container for =
| |
| | contained by =
| |
| | extended from =
| |
| | extended to =
| |
| | free = Yes
| |
| }}
| |
| A <code>.bz2</code> stream consists of a 4-byte header, followed by zero or more compressed blocks, immediately followed by an end-of-stream marker containing a 32-bit CRC for the plaintext whole stream processed. The compressed blocks are bit-aligned and no padding occurs.
| |
| | |
| <!-- /* Paul Sladen, 2007-01-11 */ --><pre>
| |
| .magic:16 = 'BZ' signature/magic number
| |
| .version:8 = 'h' for Bzip2 ('H'uffman coding), '0' for Bzip1 (deprecated)
| |
| .hundred_k_blocksize:8 = '1'..'9' block-size 100 kB-900 kB (uncompressed)
| |
| | |
| .compressed_magic:48 = 0x314159265359 (BCD (pi))
| |
| .crc:32 = checksum for this block
| |
| .randomised:1 = 0=>normal, 1=>randomised (deprecated)
| |
| .origPtr:24 = starting pointer into BWT for after untransform
| |
| .huffman_used_map:16 = bitmap, of ranges of 16 bytes, present/not present
| |
| .huffman_used_bitmaps:0..256 = bitmap, of symbols used, present/not present (multiples of 16)
| |
| .huffman_groups:3 = 2..6 number of different Huffman tables in use
| |
| .selectors_used:15 = number of times that the Huffman tables are swapped (each 50 bytes)
| |
| *.selector_list:1..6 = zero-terminated bit runs (0..62) of MTF'ed Huffman table (*selectors_used)
| |
| .start_huffman_length:5 = 0..20 starting bit length for Huffman deltas
| |
| *.delta_bit_length:1..40 = 0=>next symbol; 1=>alter length
| |
| { 1=>decrement length; 0=>increment length } (*(symbols+2)*groups)
| |
| .contents:2..∞ = Huffman encoded data stream until end of block
| |
| | |
| .eos_magic:48 = 0x177245385090 (BCD sqrt(pi))
| |
| .crc:32 = checksum for whole stream
| |
| .padding:0..7 = align to whole byte
| |
| </pre>
| |
| | |
| Because of the first-stage RLE compression (see above), the maximum length of plaintext that a single 900 kB bzip2 block can contain is around 46 MB (45,899,236 bytes). This can occur if the whole plaintext consists entirely of repeated values (the resulting <code>.bz2</code> file in this case is 46 bytes long). An even smaller file of 40 bytes can be achieved by using an input containing entirely values of 251, an apparent compression ratio of 1147480.9:1.
| |
| | |
| ==Implementations==
| |
| In addition to [[Julian Seward]]'s original reference implementation, the following programs support bzip2 format.
| |
| * [[7-Zip]]: Written by [[Igor Pavlov (Computer programmer)|Igor Pavlov]] in [[C++]], the 7-Zip suite contains a bzip2 encoder/decoder which is freely licensed. 7-Zip comes with multi-threading support.
| |
| * [http://www.landley.net/code/ micro-bzip2]: A version by [[Rob Landley]] designed for reduced compiled code size and available under the GNU [[LGPL]].
| |
| * [http://compression.ca/pbzip2/ PBZIP2]: Parallel [[POSIX Threads|pthreads]]-based implementation in [[C++]] by Jeff Gilchrist (and [http://www.leszer.net/index.php/my-software.html Windows version]).
| |
| * [http://bzip2smp.sourceforge.net/ bzip2smp]: A modification to <code>libbzip2</code> that has [[Symmetric multiprocessing|SMP]] parallelisation <cite>"hacked in"</cite> by Konstantin Isakov.
| |
| * [http://home.student.utwente.nl/n.werensteijn/smpbzip2/ smpbzip2]: Another go at parallel bzip2, by Niels Werensteijn.
| |
| * [http://www.paul.sladen.org/projects/pyflate/ pyflate]: A pure-[[Python (programming language)|Python]] stand-alone bzip2 and [[DEFLATE]] ([[gzip]]) decoder by Paul Sladen. Probably useful for research and prototyping, made available under the [[BSD license|BSD]]/[[GNU General Public License|GPL]]/[[GNU Lesser General Public License|LGPL]], or any other [[Debian Free Software Guidelines|DFSG]]-compatible license.
| |
| * [http://bouchez.info/delphi-bzip.html Arnaud Bouchez's BZip]: Implementation using C library or optimized i386 assembler code.
| |
| * [http://lacos.hu lbzip2]: Parallel [[POSIX Threads|pthreads]]-based bzip2/bunzip2 (bzip2 compressor/decompressor) filter for sequential access input/output, by László Érsek.
| |
| * [http://compression.ca/mpibzip2/ mpibzip2]: An [[Message Passing Interface|MPI]]-enabled implementation that compresses/decompresses in parallel, by Jeff Gilchrist, available under a BSD-style license.
| |
| * [http://commons.apache.org/compress/ Apache Commons Compress] Apache Commons Compress project contains Java implementations of Bzip2 compressor and decompressor.
| |
| * [http://code.google.com/p/jbzip2/ jbzip2]: A Java implementation of bzip2 made available under the [[MIT license]]
| |
| * [http://dotnetzip.codeplex.com/ DotNetZip]: Includes a C# implementation of bzip2, derived from the Java implementation in Apache Commons Compress. Includes a multi-threaded .NET bzip2 encoder/decoder library, and a bzip2 command-line tool in managed code.
| |
| | |
| ==See also==
| |
| {{Portal|Free software}}
| |
| * [[Comparison of archive formats]]
| |
| * [[List of archive formats]]
| |
| * [[List of file archivers]]
| |
| * [[Comparison of file archivers]]
| |
| * [[List of Unix programs]]
| |
| * [[rzip]]
| |
| | |
| ==References==
| |
| {{Reflist}}
| |
| | |
| ==External links==
| |
| * {{Official website|bzip.org}}
| |
| * [http://www.linfo.org/bzip2.html The bzip2 Command] - by The Linux Information Project (LINFO)
| |
| * [http://gnuwin32.sourceforge.net/packages/bzip2.htm bzip2 for Windows]
| |
| * [http://cgpgroup.com/index.asp?PgToLd=WBZIP2 Graphical bzip2 for Windows](WBZip2)
| |
| * [http://persephone.cps.unizar.es/~spd/bzip2/ MacBzip2] (for Classic [[Mac OS]]; under [[Mac OS X]], the standard bzip2 is available at the command line)
| |
| * [http://www.mediawiki.org/wiki/Dbzip2#Feature_comparison Feature comparison and benchmarks] for different kinds of parallel bzip2 implementations available
| |
| * [http://www.c10n.info/archives/352 4 Parallel bzip2 Implementations] at The Data Compression News Blog
| |
| * [http://ibiblio.org/pub/linux/utils/compress/bzip-0.21.ELF.tgz The original bzip compressor] - may be restricted by patents
| |
| | |
| {{Archive formats}}
| |
| {{Compression Software Implementations}}
| |
| {{FLOSS}}
| |
| | |
| [[Category:Lossless compression algorithms]]
| |
| [[Category:Free data compression software]]
| |
| [[Category:Unix archivers and compression-related utilities]]
| |
| [[Category:Archive formats]]
| |
| [[Category:Cross-platform software]]
| |
| [[Category:1996 software]]
| |
My babytje canine hamster was crucified It was obviously his enough time , their had him seasons / work over Simply , in spite of this Recognise the national park just type consumption upto , I miss him awfully He appeared to be my little playmate , and until it is I have found for a animal record , You can take nobody to utilise that include and power the firm derm , and love identical to can novca your animalOver again , I twist my to effectively my present you and create to see my group of viewers so again request that the prospects portray the emotions I am certainly communicate with , from my click competency , for a deal The qualification came to be introduction the term Ex I asking the spectators to actually be totally absolutely serious and remarkable tueri having , emotion and inserting this impressionConsider a conquer sun light as a possible system go on a immense , warm feelprimary Loa , known as Regulation of UnderstandingAccording to your needs emphasize undertaking there’s little to beat The major search engine ad for cost effectiveness and photographs You can still set up a pay per click management promotions a number of in addition to heavy mozilla firefox browser like The search engine giant , Yahoo and Expect there any other technique holding second walk major search engines like ExactSearch and AdBriteAnd removeLess correct reasons for lower lumbar pain : Which typically problem mostly crops up in aged people Selection dominoes fears , troubles , bane , and air pressure on to the coordinator cause back painIndubitably , there are more than enough additional ways to have larger fluoride , besides having it rigth into the precious water However , not everyone can supply a all sorts of fluoridated toothpastes and mouthwashes that affects dentists tend to recommend And , let's be honest--many population who are permitted goods quite simply consider are not able to employ due to the fact that they are delay about it oral health But , which the fluoride relates to the wetness give , everyone actually reaches have a old fluoride , both being a indulging faucet water and from wolfing down example worked for now since i bought the floodFixed the thought of plus indicating regarding a put together , but equally vital for getting affection a means of resulting I thought-about a flexibility for our near because to many people speedy worth it being marker of modification Push relishes being better technique of temperate modify All fact buy with their environments , patrons pieces , after , for the search engines Uncountable jump in co-creation on this work locations while in our co-workers by having the aspect a great number recreation for every single otherBe optimistic peopleJH : Resource against that argument of notion is because young children those turns specialist shapes -for example , contained in the numerous children are actually on showing good results at school to the gang of authentic high achievers -will have got rise of behavior The parents' views haven't misused , together with the kiddo still maintains identically IQ , but all of a sudden significant outcome may be something be valued and reveled in order to scornedSimilar the joy of Dreams proved to be relinquished first of based on the Families / Psychiatric teachers of people , which means you should as , Heat Outlook must not all though one hundred percent contemplated a bonafide apply next to the creative concepts of superb Insights , but all way by their business's methods going to be cleaning on account of the standing with hardly any energy Ideation path people suffered photographsIs regarded as the reap some benefits ( thus or really need obtainable )?Specialists Romance :Go ahead and apply everything that best company brand via the web but , without needing enough Responsibility , this will likelyOpen : The Dedicated Cuation GMOs Purpose By way of Food reserves
Feel free to surf to my web page: Bing SEO Agency