From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/10527 Path: main.gmane.org!not-for-mail From: Jan Vroonhof Newsgroups: gmane.emacs.gnus.general Subject: Re: Not running expiry when I exit a group Date: 04 Apr 1997 21:07:52 +0200 Sender: vroonhof@math.ethz.ch Message-ID: References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 (generated by tm-edit 7.106) Content-Type: text/plain; charset=US-ASCII X-Trace: main.gmane.org 1035150383 24897 80.91.224.250 (20 Oct 2002 21:46:23 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 21:46:23 +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 LAA05798 for ; Fri, 4 Apr 1997 11:22:50 -0800 Original-Received: from claymore.vcinet.com (claymore.vcinet.com [208.205.12.23]) by ifi.uio.no with SMTP (8.6.11/ifi2.4) id for ; Fri, 4 Apr 1997 21:12:39 +0200 Original-Received: (qmail 8650 invoked by uid 504); 4 Apr 1997 19:10:08 -0000 Original-Received: (qmail 8647 invoked from network); 4 Apr 1997 19:10:07 -0000 Original-Received: from frege-d-math-north-g-west.math.ethz.ch (HELO frege.math.ethz.ch) (root@129.132.145.3) by claymore.vcinet.com with SMTP; 4 Apr 1997 19:10:07 -0000 Original-Received: from fresnel.math.ethz.ch (vroonhof@fresnel [129.132.145.6]) by frege.math.ethz.ch (8.6.12/Main-STAT-mailer) with ESMTP id VAA02029 for ; Fri, 4 Apr 1997 21:12:00 +0200 Original-Received: (vroonhof@localhost) by fresnel.math.ethz.ch (8.6.9/D-MATH-client) id VAA27859; Fri, 4 Apr 1997 21:07:52 +0200 Original-To: ding@gnus.org In-Reply-To: Jan Vroonhof's message of 04 Apr 1997 15:09:56 +0200 Original-Lines: 33 X-Mailer: Gnus v5.4.37/XEmacs 19.15(beta104) Xref: main.gmane.org gmane.emacs.gnus.general:10527 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:10527 Jan Vroonhof writes: > as the the other ones. Why is it so slow anyway? Even under elisp a > few thousand compares should be doable in a few secconds. It is not slow because of the compares... (I implemented a dummy nnmail-expirable-article-p that returns nil always and it is still slow) 1. It is slow because it looks up each article by searching for it from (point-min). I just did a (progn (setq i 3000) (save-excursion (set-buffer bufje) (while (< 0 i) (setq i (+ i -1)) (goto-char (point-min)) (search-forward "X-Gnus-Article-Number: 3451")))) where bufje is the nnfolder:xemacs-beta buffer and it took about as long. (nnolder-request-expire-articles does about the same). I think there is a lot of room for optimization here. 2. My articles in nnfolder:xemacs-beta are numbered 31xx - 3451... but Gnus does a gnus-request-expire-articles((594 595 596 597 598 So it searches about 2500 times too many!. There's some baaaadddd things going on here.