From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/7372 Path: main.gmane.org!not-for-mail From: Ken Raeburn Newsgroups: gmane.emacs.gnus.general Subject: Re: Changing Default News Server Date: 30 Jul 1996 23:00:48 -0400 Sender: raeburn@cygnus.com Message-ID: References: <199607182343.QAA01742@wink.corp.sgi.com> NNTP-Posting-Host: coloc-standby.netfonds.no X-Trace: main.gmane.org 1035147693 7015 80.91.224.250 (20 Oct 2002 21:01:33 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 21:01:33 +0000 (UTC) Cc: ding@ifi.uio.no Return-Path: ding-request@ifi.uio.no Original-Received: from ifi.uio.no (ifi.uio.no [129.240.64.2]) by deanna.miranova.com (8.7.5/8.6.9) with SMTP id UAA01941 for ; Tue, 30 Jul 1996 20:09:37 -0700 Original-Received: from cygnus.com (cygnus.com [140.174.1.1]) by ifi.uio.no with ESMTP (8.6.11/ifi2.4) id ; Wed, 31 Jul 1996 05:01:18 +0200 Original-Received: from tweedledumb.cygnus.com (tweedledumb.cygnus.com [192.80.44.1]) by cygnus.com (8.6.12/8.6.9) with SMTP id UAA21591; Tue, 30 Jul 1996 20:00:56 -0700 Original-Received: from cujo.cygnus.com by tweedledumb.cygnus.com (4.1/4.7) id AA26825; Tue, 30 Jul 96 23:00:50 EDT Original-Received: by cujo.cygnus.com; (5.65v3.2/1.1.8.2/20Sep95-0235PM) id AA01035; Tue, 30 Jul 1996 23:00:49 -0400 Original-To: Lars Magne Ingebrigtsen In-Reply-To: Lars Magne Ingebrigtsen's message of 30 Jul 1996 22:24:55 +0200 Original-Lines: 37 X-Mailer: Gnus v5.2.32/Emacs 19.31 Xref: main.gmane.org gmane.emacs.gnus.general:7372 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:7372 Lars Magne Ingebrigtsen writes: > Well, I think if we're clever we can get the operation down to hours, > and if we do it thoroughly it might take days. I'm probably being > overly pessimistic, though. I think I should just write it and see > whether it'll be too slow to be useful. I located the perl script I had seen before, and ran it with my .newsrc and my nntp server. Now, we do have a short expire time for many groups, and we've been off the air for a couple of days, so I've got an easy test case, but it finished translating from newsrc to message-id list (ids plus group names totalling 2854 items) in under 30 seconds. The reverse translation took less time. This is recording only the read articles. Ticked and replied-to articles would need to be tracked separately. I don't think unread articles need to be tracked. A typical news server probably has many more articles than we do right now, but I would guess (possibly incorrectly?) that the time required would be more dependent on the number of articles read, not the total available on the server. I would expect an elisp version to be much slower than the perl code -- take this as a challenge if you like :-) -- but if it does amount to a large number of minutes or even an hour or more, I don't think it's a big problem as long as progress can be monitored in the minibuffer or something. This *shouldn't* be a common operation, and the user shouldn't mind waiting a long time. Heck, she could run it in batch mode. It takes a long time to run nnml-generate-nov-databases too, but we don't skimp on the accuracy for performance reasons. :-) Ken P.S. I don't know if this perl code is considered ripe for distribution. I can check with the author, if anyone wants to look at it.