mastouille.fr est l'un des nombreux serveurs Mastodon indépendants que vous pouvez utiliser pour participer au fédiverse.
Mastouille est une instance Mastodon durable, ouverte, et hébergée en France.

Administré par :

Statistiques du serveur :

661
comptes actifs

#textcompression

0 message0 participant0 message aujourd’hui
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>
Farooq | فاروق<p>So I was short on storage on my archive drive. I saw librewolf source code. It was <code>tar.gz</code> and ~800MB. I uncompressed it then recompressed it with <code>bzip2 -9</code> and now it's ~600MB. Generally <a href="https://cr8r.gg/tags/bzip2" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>bzip2</span></a> has better compression for such these data than <a href="https://cr8r.gg/tags/gzip" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>gzip</span></a>.</p><p>Edit: But don't do <code>bzip2 -9</code> all and everywhere. Sometimes <code>-4</code> is the same as <code>-9</code> however the latter being tons slower. Also there is <code>pbzip2</code> for using all your CPU cores. </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/compressionalgorithm" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>compressionalgorithm</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/opensource" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>opensource</span></a> <a href="https://cr8r.gg/tags/tech" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>tech</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/bsd" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>bsd</span></a> <a href="https://cr8r.gg/tags/freebsd" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>freebsd</span></a></p>
IT News<p>AI Can Now Compress Text - There are many claims in the air about the capabilities of AI systems, as the tech... - <a href="https://hackaday.com/2024/04/28/ai-can-now-compress-text/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">hackaday.com/2024/04/28/ai-can</span><span class="invisible">-now-compress-text/</span></a> <a href="https://schleuss.online/tags/artificialintelligence" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>artificialintelligence</span></a> <a href="https://schleuss.online/tags/textcompression" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>textcompression</span></a> <a href="https://schleuss.online/tags/llama" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>llama</span></a></p>
IT News<p>Text Compression Gets Weirdly Efficient With LLMs - It used to be that memory and storage space were so precious and so limited of a r... - <a href="https://hackaday.com/2023/08/27/text-compression-gets-weirdly-efficient-with-llms/" rel="nofollow noopener noreferrer" target="_blank"><span class="invisible">https://</span><span class="ellipsis">hackaday.com/2023/08/27/text-c</span><span class="invisible">ompression-gets-weirdly-efficient-with-llms/</span></a> <a href="https://schleuss.online/tags/artificialintelligence" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>artificialintelligence</span></a> <a href="https://schleuss.online/tags/losslesscompression" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>losslesscompression</span></a> <a href="https://schleuss.online/tags/lossycompression" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>lossycompression</span></a> <a href="https://schleuss.online/tags/textcompression" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>textcompression</span></a> <a href="https://schleuss.online/tags/softwarehacks" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>softwarehacks</span></a> <a href="https://schleuss.online/tags/neuralnetwork" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>neuralnetwork</span></a> <a href="https://schleuss.online/tags/compression" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>compression</span></a> <a href="https://schleuss.online/tags/winzip" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>winzip</span></a> <a href="https://schleuss.online/tags/llm" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>llm</span></a></p>