* a few tar.xz packages are bigger than their uncompressed tar
@ 2017-09-24 18:46 Jérôme Bouat
2017-09-24 19:19 ` Marco Atzeri
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Jérôme Bouat @ 2017-09-24 18:46 UTC (permalink / raw)
To: cygwin
Hello,
I looked into the local folder where the downloaded packages are saved before they are installed. I noticed that a few compressed archives files are using more size than their uncompressed form. For example, the libstdc++6-6.4.0-1.tar.xz file uses more space than its uncompressed tar file (on cygwin x86_64).
That is not surprising. All compression methods may sometimes inflate the final amount of data.
Would it be a way to keep the tar archive file uncompressed if the compressed form needs more space ?
Regards.
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: a few tar.xz packages are bigger than their uncompressed tar
2017-09-24 18:46 a few tar.xz packages are bigger than their uncompressed tar Jérôme Bouat
@ 2017-09-24 19:19 ` Marco Atzeri
2017-09-27 4:50 ` Andrey Repin
2017-10-05 18:56 ` Kaz Kylheku
2 siblings, 0 replies; 6+ messages in thread
From: Marco Atzeri @ 2017-09-24 19:19 UTC (permalink / raw)
To: cygwin
On 24/09/2017 20:46, Jérôme Bouat wrote:
> Hello,
>
> I looked into the local folder where the downloaded packages are saved
> before they are installed. I noticed that a few compressed archives
> files are using more size than their uncompressed form. For example, the
> libstdc++6-6.4.0-1.tar.xz file uses more space than its uncompressed tar
> file (on cygwin x86_64).
I do not see it
$ ls -s libstdc++6-6.4.0-1.tar.xz
280K libstdc++6-6.4.0-1.tar.xz
$ ls -s usr/bin/cygstdc++-6.dll
1.4M usr/bin/cygstdc++-6.dll
Regards
Marco
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: a few tar.xz packages are bigger than their uncompressed tar
2017-09-24 18:46 a few tar.xz packages are bigger than their uncompressed tar Jérôme Bouat
2017-09-24 19:19 ` Marco Atzeri
@ 2017-09-27 4:50 ` Andrey Repin
2017-10-05 18:56 ` Kaz Kylheku
2 siblings, 0 replies; 6+ messages in thread
From: Andrey Repin @ 2017-09-27 4:50 UTC (permalink / raw)
To: Jérôme Bouat, cygwin
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=utf-8, Size: 1544 bytes --]
Greetings, Jérôme Bouat!
> Hello,
> I looked into the local folder where the downloaded packages are saved
> before they are installed. I noticed that a few compressed archives files
> are using more size than their uncompressed form. For example, the
> libstdc++6-6.4.0-1.tar.xz file uses more space than its uncompressed tar file (on cygwin x86_64).
$ ls -ld "libstdc++6-6.4.0-1.tar.xz" ; tar tf "libstdc++6-6.4.0-1.tar.xz" -v
-rw-r--r-- 1 anrdaemon None 282724 Ñен 18 20:17 libstdc++6-6.4.0-1.tar.xz
-rwxr-xr-x Blue/None 1367059 2017-09-10 01:23 usr/bin/cygstdc++-6.dll
$ sha512sum.exe libstdc++6-6.4.0-1.tar.xz
734f6f91003588c82bccfc016d89414cd25ea6560484391c1424513f053b3e0f3e9932e317740804c10d90e6f9fd99d4d198cf8ea953da22969aab50182f4c74 *libstdc++6-6.4.0-1.tar.xz
# Matches the one in setup.ini
> That is not surprising. All compression methods may sometimes inflate the final amount of data.
> Would it be a way to keep the tar archive file uncompressed if the compressed form needs more space ?
Compression MAY inflate the file, but never by an order of magnitude.
At worst, it will be inflated by the size of metadata describing all blocks in
order.
--
With best regards,
Andrey Repin
Wednesday, September 27, 2017 07:43:04
Sorry for my terrible english...\x03BKCB\x1cØ\x19[H\x1c\^[Ü\x1cÎ\b\b\b\b\b\b\x1a\x1d\x1d\x1c\x0eËØÞYÝÚ[ÛÛKÜ\x1cØ\x19[\Ë\x1d^[[\x03BTN\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\x1a\x1d\x1d\x1c\x0eËØÞYÝÚ[ÛÛKÙ\KÃB^[ØÝ[Y[\x18]\x1a[Û\b\b\b\b\b\b\b\b\x1a\x1d\x1d\x1c\x0eËØÞYÝÚ[ÛÛKÙ^[ØÜË\x1d^[[\x03B[ÝXØÜXH\x1a[Î\b\b\b\b\b\x1a\x1d\x1d\x1c\x0eËØÞYÝÚ[ÛÛKÛ[\vÈÝ[ÝXØÜXK\Ú[\^[\x19CBB
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: a few tar.xz packages are bigger than their uncompressed tar
2017-09-24 18:46 a few tar.xz packages are bigger than their uncompressed tar Jérôme Bouat
2017-09-24 19:19 ` Marco Atzeri
2017-09-27 4:50 ` Andrey Repin
@ 2017-10-05 18:56 ` Kaz Kylheku
2017-10-05 19:09 ` Jérôme Bouat
2017-10-05 19:10 ` Jérôme Bouat
2 siblings, 2 replies; 6+ messages in thread
From: Kaz Kylheku @ 2017-10-05 18:56 UTC (permalink / raw)
To: cygwin
On 24.09.2017 11:46, Jérôme Bouat wrote:
> Hello,
>
> I looked into the local folder where the downloaded packages are saved
> before they are installed. I noticed that a few compressed archives
> files are using more size than their uncompressed form. For example,
> the libstdc++6-6.4.0-1.tar.xz file uses more space than its
> uncompressed tar file (on cygwin x86_64).
>
> That is not surprising. All compression methods may sometimes inflate
> the final amount of data.
No compression method need ever increase the
size of the datum by more than one bit.
The compressed representation can begin with a header
bit which is 1 to indicate "compressed" and 0 to indicate
"stored without compression".
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: a few tar.xz packages are bigger than their uncompressed tar
2017-10-05 18:56 ` Kaz Kylheku
@ 2017-10-05 19:09 ` Jérôme Bouat
2017-10-05 19:10 ` Jérôme Bouat
1 sibling, 0 replies; 6+ messages in thread
From: Jérôme Bouat @ 2017-10-05 19:09 UTC (permalink / raw)
To: cygwin
Hello
> No compression method need ever increase the
> size of the datum by more than one bit.
>
> The compressed representation can begin with a header
> bit which is 1 to indicate "compressed" and 0 to indicate
> "stored without compression".
Does the xz format provide a checksum even if the file is stored without compression ?
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: a few tar.xz packages are bigger than their uncompressed tar
2017-10-05 18:56 ` Kaz Kylheku
2017-10-05 19:09 ` Jérôme Bouat
@ 2017-10-05 19:10 ` Jérôme Bouat
1 sibling, 0 replies; 6+ messages in thread
From: Jérôme Bouat @ 2017-10-05 19:10 UTC (permalink / raw)
To: cygwin
Hello
> No compression method need ever increase the
> size of the datum by more than one bit.
>
> The compressed representation can begin with a header
> bit which is 1 to indicate "compressed" and 0 to indicate
> "stored without compression".
Does the xz format provide a checksum even if the file is stored without compression ?
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2017-10-05 19:10 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-24 18:46 a few tar.xz packages are bigger than their uncompressed tar Jérôme Bouat
2017-09-24 19:19 ` Marco Atzeri
2017-09-27 4:50 ` Andrey Repin
2017-10-05 18:56 ` Kaz Kylheku
2017-10-05 19:09 ` Jérôme Bouat
2017-10-05 19:10 ` Jérôme Bouat
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).