Re: Script to conditionally find and compress files recursively

Liste des GroupesRevenir à col misc 
Sujet : Re: Script to conditionally find and compress files recursively
De : not (at) *nospam* telling.you.invalid (Computer Nerd Kev)
Groupes : comp.os.linux.misc
Date : 14. Jun 2024, 03:25:06
Autres entêtes
Organisation : Ausics - https://newsgroups.ausics.net
Message-ID : <666baa01@news.ausics.net>
References : 1 2 3 4 5
User-Agent : tin/2.0.1-20111224 ("Achenvoir") (UNIX) (Linux/2.4.31 (i586))
Computer Nerd Kev <not@telling.you.invalid> wrote:
Anssi Saari <anssi.saari@usenet.mail.kapsi.fi> wrote:
 
Well then, I believe the solution was already posted. Grab 5% of your
files with dd and see how it compresses.
 
The solution that I see grabs the first 1MB, but it would make more
sense to sample eg. 1% of the file size in five places within the
file. 100MB file = 1MB sample, 100MB/5 = 20MB, so use dd to grab
one 1MB sample from the start of the file then four more at an
offset that increments by 20MB each time. Store these separately,
compress them separately, then average the compression ratio of all
the samples.

Also for some types of data (if it's not all video), like text, some
more advanced compressors build a dictionary to better compress
larger files. But this requires a minimum file size, so the small
samples might not represent the compression ratio of the whole file
with a dictionary included. A solution is to pre-generate a
dictionary based on a collection of the same type of files you're
compressing, then you could compress the small samples using that
dictionary and get a more accurate result.

--
__          __
#_ < |\| |< _#

Date Sujet#  Auteur
11 Jun 24 * Script to conditionally find and compress files recursively16J Newman
11 Jun 24 +- Re: Script to conditionally find and compress files recursively1D
11 Jun 24 +- Re: Script to conditionally find and compress files recursively1Joe Beanfish
12 Jun 24 +* Re: Script to conditionally find and compress files recursively12Grant Taylor
12 Jun 24 i+* Re: Script to conditionally find and compress files recursively6Richard Kettlewell
12 Jun 24 ii`* Re: Script to conditionally find and compress files recursively5D
13 Jun 24 ii `* Re: Script to conditionally find and compress files recursively4J Newman
13 Jun 24 ii  `* Re: Script to conditionally find and compress files recursively3D
14 Jun 24 ii   `* Re: Script to conditionally find and compress files recursively2Grant Taylor
14 Jun 24 ii    `- Re: Script to conditionally find and compress files recursively1D
13 Jun 24 i`* Re: Script to conditionally find and compress files recursively5J Newman
13 Jun 24 i `* Re: Script to conditionally find and compress files recursively4Anssi Saari
13 Jun 24 i  +- Re: Script to conditionally find and compress files recursively1D
14 Jun 24 i  `* Re: Script to conditionally find and compress files recursively2Computer Nerd Kev
14 Jun 24 i   `- Re: Script to conditionally find and compress files recursively1Computer Nerd Kev
15 Jun 24 `- Re: Script to conditionally find and compress files recursively1J Newman

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal