From: Sven Joachim <svenjoac@gmx.de>
To: Katsumi Yamaoka <yamaoka@jpl.org>
Cc: bugs@gnus.org, ding@gnus.org
Subject: Re: Huge memory consumption on accessing large newsgroup
Date: Fri, 10 Aug 2007 14:43:32 +0200 [thread overview]
Message-ID: <87ps1vh85n.fsf@gmx.de> (raw)
In-Reply-To: <b4mvebnty89.fsf@jpl.org> (Katsumi Yamaoka's message of "Fri\, 10 Aug 2007 20\:39\:34 +0900")
Katsumi Yamaoka <yamaoka@jpl.org> writes:
> I overlooked that the argument of this function can be complicated.
> Try the following one instead:
>
> (defadvice gnus-uncompress-range (before narrow-range (ranges) activate)
> "Narrow the range if it is unreasonably wide."
> (let ((ttl 10000)
> (rest (if (and (cdr ranges) (not (consp (cdr ranges))))
> (list ranges)
> (nreverse ranges)))
> range diff)
> (setq ranges nil)
> (while rest
> (setq range (car rest)
> rest (cdr rest))
> (if (numberp range)
> (progn
> (push range ranges)
> (setq ttl (1- ttl)))
> (if (= ttl 1)
> (progn
> (push (cdr range) ranges)
> (setq ttl 0))
> (setq diff (min (- (cdr range) (car range) -1) ttl)
> ttl (- ttl diff))
> (push (cons (max (car range) (- (cdr range) diff -1))
> (cdr range))
> ranges)))
> (when (zerop ttl)
> (setq rest nil)))))
Does not seem to help much, it seems. :-) With this advice, Emacs'
memory footprint grew to 303 MB on accessing be.politics at
news.motzarella.org, another random example of a group with supposedly
30m+ articles. And fetching 50 headers increased it to 574 MB.
Kind regards,
Sven
next prev parent reply other threads:[~2007-08-10 12:43 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <87wsw4u21m.fsf@gmx.de>
2007-08-10 9:08 ` Katsumi Yamaoka
2007-08-10 11:39 ` Katsumi Yamaoka
2007-08-10 12:43 ` Sven Joachim [this message]
2007-08-13 11:44 ` Katsumi Yamaoka
2007-08-13 17:30 ` Sven Joachim
2007-08-14 11:46 ` Katsumi Yamaoka
2007-09-13 10:27 ` Katsumi Yamaoka
2007-08-10 12:42 ` Sven Joachim
2007-09-29 21:04 ` Gaute Strokkenes
2007-09-30 22:11 ` Ted Zlatanov
2007-10-01 0:29 ` Katsumi Yamaoka
2007-10-01 1:04 ` Daniel Pittman
2007-10-02 2:13 ` Ted Zlatanov
2007-10-02 3:23 ` Daniel Pittman
2007-10-02 11:11 ` Ted Zlatanov
2007-10-02 12:17 ` Daniel Pittman
2007-10-02 16:08 ` Ted Zlatanov
2007-10-03 0:19 ` Daniel Pittman
2007-10-02 13:33 ` Daniel Pittman
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=87ps1vh85n.fsf@gmx.de \
--to=svenjoac@gmx.de \
--cc=bugs@gnus.org \
--cc=ding@gnus.org \
--cc=yamaoka@jpl.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).