From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/23572 Path: main.gmane.org!not-for-mail From: David Hedbor Newsgroups: gmane.emacs.gnus.general Subject: Re: some mail annoyances [renumbering] Date: 25 Jun 1999 17:27:45 -0700 Organization: DSH Internet Sender: owner-ding@hpc.uh.edu Message-ID: References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035161280 2740 80.91.224.250 (21 Oct 2002 00:48:00 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 00:48:00 +0000 (UTC) Return-Path: Original-Received: from farabi.math.uh.edu (farabi.math.uh.edu [129.7.128.57]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id UAA01520 for ; Fri, 25 Jun 1999 20:29:00 -0400 (EDT) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by farabi.math.uh.edu (8.9.1/8.9.1) with ESMTP id TAB10802; Fri, 25 Jun 1999 19:28:25 -0500 (CDT) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Fri, 25 Jun 1999 19:28:59 -0500 (CDT) Original-Received: from sclp3.sclp.com (root@sclp3.sclp.com [204.252.123.139]) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id TAA10866 for ; Fri, 25 Jun 1999 19:28:48 -0500 (CDT) Original-Received: from mouser.hedbor.org (r197-28-dsl.sea.lightrealm.net [216.122.28.197]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id UAA01496 for ; Fri, 25 Jun 1999 20:27:47 -0400 (EDT) Original-Received: from nyarlathotep.home.hedbor.org (n [192.168.10.42]) by mouser.hedbor.org (Postfix) with SMTP id F3C3D6605E for ; Fri, 25 Jun 1999 17:27:45 -0700 (PDT) Original-To: ding@gnus.org In-Reply-To: Kai.Grossjohann@CS.Uni-Dortmund.DE's message of "26 Jun 1999 01:25:58 +0200" X-Homepage: http://david.hedbor.org/ X-Face: 3su_O5R!|})4gc|&nXdVILe~2hIncsaJF_TC>rnR NA0Aj-u\*nln*:ktY!d+[%K()Q|1*-U [+xczKd$Xev:F#3'rFgot\l.I+w>DQ%:%HOyZ]EgFw@0[gMFsR-E`Hs~tjkc>y.i#y<55R_CScR Original-Lines: 33 User-Agent: Gnus/5.070088 (Pterodactyl Gnus v0.88) XEmacs/21.1 (20 Minutes to Nikko) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:23572 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:23572 Kai.Grossjohann@CS.Uni-Dortmund.DE writes: > David Hedbor writes: > > > [...] This has of course been discussed many times before but I > > have yet to understand why gnus can't check how many messages > > there REALLY are in a mail group. How hard can that really be? > > [...] > > It is not hard, but slow. Use nnmh as your mail backend and you will > see just *how* slow. (With nnmh, Gnus looks for the exact number of > messages in a group because nnmh does not have these nifty .overview > files. I think.) Why not simply check the number of entries in the overview files? Or add a second file that keeps the number of articles cached. I can't possibly see how this can be slow for nnml. If you don't want to count lines, isn't there a getdir function? I mean, in Pike I could do [ sizeof(get_dir(".")) ]. That takes 10-20 ms on a dir with 3000 files in it. wc -l on the .overview file in that directory takes 0.006 seconds. Another option would be to add a first line with num articles to the .overview files. In any case, I still can't see how it would be either hard or slow, unless emacs is very bad at the above operations (I don't know enough elisp to try). It would of course be an nnml specific solution (well, should work with nnmh too possibly). -- [ Below is a random fortune, which is unrelated to the above message. ] I didn't believe in reincarnation in any of my other lives. I don't see why I should have to believe in it in this one. -- Strange de Jim