From: Dan Christensen <jdc@uwo.ca>
To: ding@gnus.org
Subject: Re: faster gnus-thread-latest-date
Date: Sun, 13 Dec 2009 18:38:44 -0500 [thread overview]
Message-ID: <87638azbp7.fsf@uwo.ca> (raw)
In-Reply-To: <87ljh72mlb.fsf@rimspace.net>
Daniel Pittman <daniel@rimspace.net> writes:
> Dan Christensen <jdc@uwo.ca> writes:
>
>> Actually, in my tests it is only slightly faster. Still, the code is much
>> simpler, so unless someone can think of a reason not to, I think the change
>> should be made (after someone else checks it over and tests it).
>
> Replacing reasonably sensible behaviour (use delivery time if no
> accurate time is available) with nonsense (delivered before everything
> else if no accurate time is available) doesn't look like a usability
> win to me. :(
I'm not sure what you mean, here. When taking the maximum of a list of
data, replacing bad data with the previous thing on the list or with a
very small value won't change the maximum.
>> However, I think there's an orthogonal change which could greatly
>> improve the sorting speed. For a group I have with about 6000
>> messages and maybe 1000 threads (?), gnus-thread-latest-date is
>> called 31028 times, taking about 10.5 seconds in total. If the
>> output from gnus-thread-latest-date was cached, that would reduce the
>> number of computations of this date by at least a factor of 5, and so
>> would greatly reduce the time needed to enter the summary buffer.
>
> This sounds like a vastly more useful way to fix the problem; the results
> below show that memoizing the function returns better performance
> improvements.
Which results below? How did you memoize the function? And how does it
compare to the trick of caching the results as a text property that I
discussed in a later message?
Dan
prev parent reply other threads:[~2009-12-13 23:38 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-07 21:27 Dan Christensen
2009-12-08 3:35 ` Dan Christensen
2009-12-08 7:07 ` Katsumi Yamaoka
2009-12-08 19:14 ` Ted Zlatanov
2009-12-09 0:33 ` Dan Christensen
2009-12-10 3:03 ` Dan Christensen
2009-12-11 3:01 ` Dan Christensen
2009-12-11 22:03 ` Dan Christensen
2009-12-13 23:25 ` Dan Christensen
2009-12-14 16:18 ` Dave Love
2009-12-13 23:56 ` Dan Christensen
2010-01-02 2:09 ` Dan Christensen
2010-01-12 17:17 ` Reiner Steib
2010-06-09 13:42 ` Dan Christensen
2010-06-10 0:32 ` Katsumi Yamaoka
2010-06-10 8:42 ` Gnus new commits (was: faster gnus-thread-latest-date) Ted Zlatanov
2009-12-13 10:29 ` faster gnus-thread-latest-date Daniel Pittman
2009-12-13 23:38 ` Dan Christensen [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=87638azbp7.fsf@uwo.ca \
--to=jdc@uwo.ca \
--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).