Gnus development mailing list
 help / color / mirror / Atom feed
From: Dan Christensen <jdc@uwo.ca>
To: ding@gnus.org
Cc: Dave Love <fx@gnu.org>
Subject: Re: faster gnus-thread-latest-date
Date: Sun, 13 Dec 2009 18:25:55 -0500	[thread overview]
Message-ID: <87bpi2zcak.fsf@uwo.ca> (raw)
In-Reply-To: <871vj1184a.fsf@uwo.ca>

Dave Love <fx@gnu.org> writes:

> I don't know from where this was Cc'd, as I only got the Cc address
> without a To.

Sorry, it's from ding@gnus.org, which I read via
gmane.emacs.gnus.general.  That might have been put in the Newsgroups
header, but I understand why that might have been confusing.  This post
is the same.

> Dan Christensen <jdc@uwo.ca> writes:
>
>> Here's another patch that I think should be applied.  When parsing a
>> date, it first tries parse-time-string, and only falls back to using
>> timezone-make-date-arpa-standard if parse-time-string gives an error.
>> This is about 4 times faster in my tests with good dates, and shaves
>> 0.6s off of opening a summary buffer with 6000 articles.  I've cc'd 
>> Dave Love since I believe he introduced this.  If he can confirm that
>> the problematic dates he encountered triggered an error in
>> parse-time-string, then this patch should be ok.
>
> The comment says that parse-time-string can produce bogus results rather
> than fail.  I vaguely remember this was about getting silly results from
> two-digit dates around the millennium -- returning the epoch, I guess --
> but I don't know for sure.

Well, I guess we shouldn't apply the date-to-time patch then, although
it would be better if we really knew what the problem was and could fix
it without slowing things down by a factor of 4.

On the other hand, if the caching patch gets applied, then it shouldn't
matter too much in practise.  (The 0.6s above is with the caching patch
applied; the time difference would be *much* larger without the caching
patch.)

Dan




  reply	other threads:[~2009-12-13 23:25 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 [this message]
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

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=87bpi2zcak.fsf@uwo.ca \
    --to=jdc@uwo.ca \
    --cc=ding@gnus.org \
    --cc=fx@gnu.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).