Farooq | فاروق<p>So <span class="h-card" translate="no"><a href="https://polymaths.social/@rl_dane" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>rl_dane</span></a></span> introduced <a href="https://cr8r.gg/tags/bzip3" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>bzip3</span></a> to me to use instead of <a href="https://cr8r.gg/tags/bzip2" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>bzip2</span></a>. Let's turn some <code>bz2</code> files into <code>bz3</code> to see the difference.</p><p><strong>First example: 90k opus files</strong></p><p>hey snips wake word dataset. It has ~90k opus files and a tar file of <code>3.1GB</code>. <code>bzip2</code> produces the same <code>3.1GB</code> which is as expected. bzip3 created <code>3.0GB</code> but used tons of computation power. Not worth the <code>100MB</code></p><p><strong>Second example: Windows 7 virtual box VM image</strong></p><p><code>Windows7.vdi</code> it's Windows 7 VM image for the "special" days. I think I have to get rid of it. But while it is still there, let's see how each will perform. It is <code>16GB</code> uncompressed. <code>bzip2 -9</code> is <code>7.0GB</code>. <code>bzip3</code> is <code>6.3GB</code> but at the expense of like 3x CPU time. Deleting all of them anyway. Down with Windows.</p><p><strong>Third example: Pure XML text file</strong></p><p>Pure XML file. It's Persian and English characters. Uncompressed is <code>1.7GB</code>. <code>bzip2 -9</code> is <code>276M</code> while <code>bzip3</code> is <code>260MB</code></p><p><strong>Final example: Creating a simple bomb</strong></p><p>So I did this:</p><pre><code>dd if=/dev/zero of=./justzero bs=2G count=6<br></code></pre><p>So now I have a <code>16GB</code> with only zero bytes. <code>bzip2 -9</code> is <code>672KB</code>. <code>bzip3</code> is <code>46KB</code>. </p><p><strong>Conclusion</strong></p><p>Thank you <span class="h-card" translate="no"><a href="https://polymaths.social/@rl_dane" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>rl_dane</span></a></span> </p><p>Real nice thing!</p><p><a href="https://cr8r.gg/tags/compression" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>compression</span></a> <a href="https://cr8r.gg/tags/gzip" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>gzip</span></a> <a href="https://cr8r.gg/tags/zip" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>zip</span></a> <a href="https://cr8r.gg/tags/filecompression" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>filecompression</span></a> <a href="https://cr8r.gg/tags/textcompression" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>textcompression</span></a> <a href="https://cr8r.gg/tags/datacompression" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>datacompression</span></a> <a href="https://cr8r.gg/tags/linux" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>linux</span></a> <a href="https://cr8r.gg/tags/unix" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>unix</span></a> <a href="https://cr8r.gg/tags/tech" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>tech</span></a></p>