delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2017/09/27/00:50:45

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:reply-to:message-id:to:subject
:in-reply-to:references:mime-version:content-type
:content-transfer-encoding; q=dns; s=default; b=pEjC/OgTPdPz7GLM
PLPlaZsPwOpePDEfswLKd8cLXN/txA861KPpizS+lUN77cTr1EcyAcErEC4ToPZj
R7q+4t8KnjlWqCPztF3cEtcUfuZdUBZlaNouzi/7BQPlzImq8B8K5+6Zssvh/oOk
pT1A/NBqNJXG8XP2HxoQgS7rXps=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:reply-to:message-id:to:subject
:in-reply-to:references:mime-version:content-type
:content-transfer-encoding; s=default; bh=SaUrg2JZZudXI8wMMbksmx
/Ch10=; b=aSTYMi9i10y0rlg6f0qGE4qdOPTPNxSqd6SBZ8XciyHhsSIUEI3HwF
MNzJ+qnjl0rNBcXzMBvmOoQpOwV9SPsMtgagB8/xC8QpmgDxtALun/r0MbGavKS7
LRGe33dIxDd5Pco/KG0l/gNa5e1x5FiWlBHq/KoUSLx3cr/DdahzM=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: =?ISO-8859-1?Q?No, score=-0.7 required=5.0 tests=BAYES_00,FREEMAIL_FROM,KAM_THEBAT,MIME_BASE64_BLANKS,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.3.2 spammy==d0=b5=d0=bd, MAY, Blue, UD:ini?=
X-HELO: forward103o.mail.yandex.net
Authentication-Results: smtp4o.mail.yandex.net; dkim=pass header.i=@yandex.ru
Date: Wed, 27 Sep 2017 07:47:42 +0300
From: Andrey Repin <anrdaemon AT yandex DOT ru>
Reply-To: cygwin AT cygwin DOT com
Message-ID: <725770429.20170927074742@yandex.ru>
To: =?utf-8?Q?J=C3=A9r=C3=B4me_Bouat?= <jerome DOT bouat AT laposte DOT net>,
cygwin AT cygwin DOT com
Subject: Re: a few tar.xz packages are bigger than their uncompressed tar
In-Reply-To: <cc1a2cd5-a947-624e-4473-73151794a5d7@laposte.net>
References: <cc1a2cd5-a947-624e-4473-73151794a5d7 AT laposte DOT net>
MIME-Version: 1.0
X-IsSubscribed: yes
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id v8R4oiWP009534

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...
--
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


- Raw text -


  webmaster     delorie software   privacy  
  Copyright 2019   by DJ Delorie     Updated Jul 2019