From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/52923 Path: main.gmane.org!not-for-mail From: prj@po.cwru.edu (Paul Jarc) Newsgroups: gmane.emacs.gnus.general Subject: Re: mail-sources backend specific? Date: Thu, 29 May 2003 12:14:51 -0400 Organization: What did you have in mind? A short, blunt, human pyramid? Sender: ding-owner@lists.math.uh.edu Message-ID: References: <84u1cknes9.fsf@lucy.is.informatik.uni-duisburg.de> <87fznxzemr.fsf@wmipf.in-berlin.de> <84d6j1bhn3.fsf@lucy.is.informatik.uni-duisburg.de> <87el3hxw5b.fsf@wmipf.in-berlin.de> <84isstiewq.fsf@lucy.is.informatik.uni-duisburg.de> <87he8d752z.fsf@wmipf.in-berlin.de> <87he8cav01.fsf@wmipf.in-berlin.de> <8465ost014.fsf@lucy.is.informatik.uni-duisburg.de> <87znm3g5qz.fsf@wmipf.in-berlin.de> <847k97zr1k.fsf@lucy.is.informatik.uni-duisburg.de> <87r87fph6s.fsf@wmipf.in-berlin.de> <84el3eet60.fsf@lucy.is.informatik.uni-duisburg.de> <84znm0ujee.fsf@lucy.is.informatik.uni-duisburg.de> <84smqxrfou.fsf@lucy.is.informatik.uni-duisburg.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: main.gmane.org 1054224868 26059 80.91.224.249 (29 May 2003 16:14:28 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 29 May 2003 16:14:28 +0000 (UTC) Original-X-From: ding-owner+M1467@lists.math.uh.edu Thu May 29 18:14:27 2003 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19LQ1Y-0006cz-00 for ; Thu, 29 May 2003 18:13:04 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 19LQ3U-00008G-00; Thu, 29 May 2003 11:15:04 -0500 Original-Received: from sclp3.sclp.com ([64.157.176.121]) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 19LQ3P-00008A-00 for ding@lists.math.uh.edu; Thu, 29 May 2003 11:14:59 -0500 Original-Received: (qmail 16228 invoked by alias); 29 May 2003 16:14:59 -0000 Original-Received: (qmail 16223 invoked from network); 29 May 2003 16:14:59 -0000 Original-Received: from multivac.student.cwru.edu (HELO multivac.cwru.edu) (@129.22.114.26) by sclp3.sclp.com with SMTP; 29 May 2003 16:14:59 -0000 Original-Received: (qmail 1217 invoked by uid 500); 29 May 2003 16:15:14 -0000 Original-To: ding@gnus.org In-Reply-To: <84smqxrfou.fsf@lucy.is.informatik.uni-duisburg.de> ( =?iso-8859-1?q?Kai_Gro=DFjohann's_message_of?= "Thu, 29 May 2003 16:27:29 +0200") Mail-Copies-To: nobody Mail-Followup-To: ding@gnus.org Original-Lines: 30 User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3 (gnu/linux) Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:52923 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:52923 kai.grossjohann@gmx.net (Kai Gro=DFjohann) wrote: > prj@po.cwru.edu (Paul Jarc) writes: >> I still think the situation could be greatly improved by moving the >> work of nnmail-get-new-mail out of backends and into Gnus proper. It >> would be a lot of work, but it could be done with minimal changes to >> existing configurations while enabling all the flexibility we'd like. > > That seems to be the clean design. I think Lars didn't do that for > efficiency reasons. > > How does the current implementation arrange for things to be faster, > and could we adapt it for the clean design? The current implementation gets its efficiency by passing a list of groups to the backend function. The backend then adds the article to all of those groups; this can use hard linking or any other speedups appropriate for the backend in question. But we can simply make a variant of nnchoke-request-accept-article that takes a list of groups, and get the same speedup. There's no need for a separate function nnchoke-active-number to generate the next article number first; that's already done in nnchoke-request-accept-article, and could be done similarly in the multi-group variant. There's no need for nnchoke-request-scan to be responsible for looking at mail-sources and nnmail-split-fancy; that can be done by Gnus, just before or after calling nnchoke-request-scan. paul