Gnus development mailing list
 help / color / mirror / Atom feed
From: lee <lee@yun.yagibdah.de>
To: ding@gnus.org
Subject: Re: compressing articles not working correctly
Date: Thu, 14 Jul 2011 22:02:46 +0200	[thread overview]
Message-ID: <87liw0d40p.fsf@yun.yagibdah.de> (raw)
In-Reply-To: <871uxsesvn.fsf@topper.koldfront.dk> ("Adam =?utf-8?Q?Sj?= =?utf-8?Q?=C3=B8gren=22's?= message of "Thu, 14 Jul 2011 18:20:28 +0200")

asjo@koldfront.dk (Adam Sjøgren) writes:

> On Thu, 14 Jul 2011 17:46:37 +0200, lee wrote:
>
>> ,---- [ lee@yun:~/Mail/mail/lists/users-global-libreoffice$ ls -lat ]
>> | -rw-------  1 lee lee   5012 14. Jul 17:26 1161
>> | -rw-------  1 lee lee   4896 14. Jul 17:26 1160
>> | -rw-------  1 lee lee   4909 14. Jul 17:26 1159.bz2
>> `----
>
> ls -l doesn't report the size of the body of the email. The
> documentation of nnml-compressed-files-size-threshold indicates that the
> headers are not included when applying the threshold:
>
> ,----[ C-h v nnml-compressed-files-size-threshold RET ]
> | Default size threshold for compressed message files.
> | Message files with bodies larger than that many characters will
>                      ^^^^^^
> | be automatically compressed if `nnml-use-compressed-files' is
> | non-nil.
> `----
>
> Could that be it?

Hm, looks like it.  I checked above articles and found that the body is
only about 1kB.

The idea is to save disk space without losing more speed than necessary
due to compression.  Each article will occupy at least 4kB because
that's the sector size.  I could probably set the threshold to -1 and
have all articles compressed, but for those articles that are smaller
than 4kB, including headers, compression isn't needed.  The same goes
for articles >4kB<8kB uncompressed and still >4kB<8kB when
compressed. Looks like I should write some program that scans the
article storage and compresses all uncompressed articles depending on
whether the compression does save disk space or not ... The speed gain
might be not worth it because it doesn't take awfully long to
(un-)compress small articles.  Hmm.



      parent reply	other threads:[~2011-07-14 20:02 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-14 15:46 lee
2011-07-14 16:20 ` Adam Sjøgren
2011-07-14 16:37   ` Angel de Vicente
2011-07-14 16:56     ` Adam Sjøgren
2011-07-15  9:40       ` Angel de Vicente
2011-07-14 17:34     ` Richard Riley
2011-07-14 20:02   ` lee [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87liw0d40p.fsf@yun.yagibdah.de \
    --to=lee@yun.yagibdah.de \
    --cc=ding@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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 NNTP newsgroup(s).