Gnus development mailing list
 help / color / mirror / Atom feed
From: Ken Raeburn <raeburn@cygnus.com>
Subject: timezone.el patterns in emacs 19.34
Date: 02 May 1997 19:18:14 -0400	[thread overview]
Message-ID: <tx1bu6tlayx.fsf@cygnus.com> (raw)


FYI, in case anyone wants to try out this change...

------- Start of forwarded message -------
Date: Fri, 2 May 1997 04:44:11 -0400
Message-Id: <199705020844.EAA06520@kr-laptop.cygnus.com>
From: Ken Raeburn <raeburn@cygnus.com>
To: umerin@mse.kyutech.ac.jp, rms@gnu.ai.mit.edu
Subject: timezone.el patterns in emacs 19.34


I noticed some time ago that timezone-parse-date took up a large
portion of the time of building a summary buffer in Gnus.  Tonight I
did a little instrumenting of that routine.  If my results are
correct, all the mail headers I've processed since (over 12000) *all*
matched one of the regexp patterns, namely the one labeled

	   ;; Styles: (1) and (2) with timezone and buggy timezone

which means basically

	[wkday,] DD MMM YYYY hh:mm[:ss] [TZ]

This looks like the right form for news headers as well.

This is the fourth regexp to be tried.  The first two are looking for:

	wkday, DD MMM hh:mm:ss [T] YYYY [TZ]

with and without the timezone specification; I haven't seen this form
actually match anything.  The third regexp checked is styles 1/2
without the timezone.

Blindly assuming that the regexps are all mutually exclusive in the
strings they'll match, I moved this one to the top of the `cond'
expression for some timing tests, using some data from my mail
headers.  The speed improvement (testing just the inner guts of
timezone-parse-date, without the code for stripping text properties)
was about a factor of 2.5.

So if it is in fact safe, I think it'd be worth moving this pattern to
the top of the list.

Does anything else use timezone-parse-date so intensely, that might
"prefer" the order used now?

Ken

------- End of forwarded message -------


             reply	other threads:[~1997-05-02 23:18 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-05-02 23:18 Ken Raeburn [this message]
     [not found] <199705020844.EAA06520@kr-laptop.cygnus.com>
1997-05-03  1:14 ` Hrvoje Niksic
1997-05-03  3:07   ` Ken Raeburn
1997-05-03  4:04     ` Hrvoje Niksic
1997-05-03 23:44       ` Ken Raeburn
1997-05-04  0:41         ` Hrvoje Niksic
1997-05-04  3:03           ` Ken Raeburn
1997-05-04 19:55             ` Hrvoje Niksic
1997-05-04 20:49               ` Johan Danielsson
1997-05-04 20:55                 ` Hrvoje Niksic
1997-05-04 22:55                   ` Stainless Steel Rat
1997-05-08 12:37         ` Lars Magne Ingebrigtsen
1997-05-03 22:41   ` Ken Raeburn

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=tx1bu6tlayx.fsf@cygnus.com \
    --to=raeburn@cygnus.com \
    /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).