From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/10851 Path: main.gmane.org!not-for-mail From: Hrvoje Niksic Newsgroups: gmane.emacs.gnus.general Subject: Re: timezone.el patterns in emacs 19.34 Date: 03 May 1997 06:04:52 +0200 Message-ID: References: <199705020844.EAA06520@kr-laptop.cygnus.com> NNTP-Posting-Host: coloc-standby.netfonds.no X-Trace: main.gmane.org 1035150654 26771 80.91.224.250 (20 Oct 2002 21:50:54 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 21:50:54 +0000 (UTC) Return-Path: Original-Received: from ifi.uio.no (0@ifi.uio.no [129.240.64.2]) by deanna.miranova.com (8.8.5/8.8.5) with SMTP id VAA13719 for ; Fri, 2 May 1997 21:12:38 -0700 Original-Received: from jagor.srce.hr (hniksic@jagor.srce.hr [161.53.2.130]) by ifi.uio.no with ESMTP (8.6.11/ifi2.4) id for ; Sat, 3 May 1997 06:04:57 +0200 Original-Received: (from hniksic@localhost) by jagor.srce.hr (8.8.5/8.8.4) id GAA26011; Sat, 3 May 1997 06:04:53 +0200 (MET DST) Original-To: ding@ifi.uio.no X-Save-Project-Gutenberg: X-Attribution: Hrv X-Face: Mie8:rOV<\c/~z{s.X4A{!?vY7{drJ([U]0O=W/xDi&N7XG KV^$k0m3Oe/)'e%3=$PCR&3ITUXH,cK>]bci&Ff%x_>1`T(+M2Gg/fgndU%k*ft [(7._6e0n-V%|%'[c|q:;}td$#INd+;?!-V=c8Pqf}3J In-Reply-To: Ken Raeburn's message of 02 May 1997 23:07:34 -0400 Original-Lines: 40 X-Mailer: Gnus v5.4.49/XEmacs 19.15 Xref: main.gmane.org gmane.emacs.gnus.general:10851 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:10851 Ken Raeburn writes: > > it should be written in C. It's not that hard to write, and the > > speedup would measure by hundreds (all those regexps would become > > unnecessary). > > I'm not so sure about converting it to straight C; I could imagine > wanting to change the supported format list someday, and wanting to do > so easily -- i.e., without recompiling emacs. I think it's a small price to pay for a big speedup of Summary buffer building. Emacs is not a particularly fast piece of software, and I don't think we should miss things like this. The speedup would be enormous, really. The extensibility is not lost, as this subr can be overridden with whatever you like, including the old version. > Besides, I think you'd probably wind up doing the regexp bit > anyways, just at the C level. These patterns don't have to match > the *entire* string, just some substring. I would do no regexp matching. If I had to resort to regexps, then I would rather leave it in Lisp, as it is. > Now, if we can ignore or work around that substring issue (not a > trivial issue, Gnus isn't the only user of that code), and require a > match against the whole string, then using getdate.y might be a win. > I understand it's supposed to be pretty comprehensive. NO! I hate getdate.y. First, because of the `.y' thingie. :-) Then, there are copyright problems with it. And, I'd like to have a fast routine that matches those 7 or so format strings. Nothing more, nothing less. If someone wants more -- the doors of Lisp are wide open. I opt for speed in this case. -- Hrvoje Niksic | Student at FER Zagreb, Croatia --------------------------------+-------------------------------- Oh lord won't you buy me a color TV...