From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.bugs Subject: bug#36714: 27.0.50; Gnus nnmaildir taking long time to recursively visit sub-Maildirs Date: Mon, 22 Jul 2019 10:21:20 -0700 Message-ID: <87a7d6yohb.fsf@ericabrahamsen.net> References: <86ftn37cvz.fsf@protected.rcdrun.com> <87sgr32mnq.fsf@ericabrahamsen.net> <20190718194311.GA6908@protected.rcdrun.com> <87k1cf2jqh.fsf@ericabrahamsen.net> <20190718204841.GB6908@protected.rcdrun.com> <87v9vyrhqx.fsf@ericabrahamsen.net> <87tvbe4ge1.fsf@tcd.ie> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="194316"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: Jean Louis , 36714@debbugs.gnu.org To: "Basil L. Contovounesios" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jul 22 19:22:08 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hpc0l-000oQN-LD for geb-bug-gnu-emacs@m.gmane.org; Mon, 22 Jul 2019 19:22:07 +0200 Original-Received: from localhost ([::1]:36236 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hpc0k-0005mn-K8 for geb-bug-gnu-emacs@m.gmane.org; Mon, 22 Jul 2019 13:22:06 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49581) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hpc0h-0005m3-Fz for bug-gnu-emacs@gnu.org; Mon, 22 Jul 2019 13:22:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hpc0g-0000VP-Ib for bug-gnu-emacs@gnu.org; Mon, 22 Jul 2019 13:22:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52983) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hpc0g-0000VD-EB for bug-gnu-emacs@gnu.org; Mon, 22 Jul 2019 13:22:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hpc0g-0004Oy-8C for bug-gnu-emacs@gnu.org; Mon, 22 Jul 2019 13:22:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eric Abrahamsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 22 Jul 2019 17:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36714 X-GNU-PR-Package: emacs Original-Received: via spool by 36714-submit@debbugs.gnu.org id=B36714.156381609216864 (code B ref 36714); Mon, 22 Jul 2019 17:22:02 +0000 Original-Received: (at 36714) by debbugs.gnu.org; 22 Jul 2019 17:21:32 +0000 Original-Received: from localhost ([127.0.0.1]:33571 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hpc0B-0004Nw-OO for submit@debbugs.gnu.org; Mon, 22 Jul 2019 13:21:31 -0400 Original-Received: from ericabrahamsen.net ([52.70.2.18]:46022 helo=mail.ericabrahamsen.net) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hpc09-0004Nj-ST for 36714@debbugs.gnu.org; Mon, 22 Jul 2019 13:21:30 -0400 Original-Received: from localhost (c-73-254-86-141.hsd1.wa.comcast.net [73.254.86.141]) (Authenticated sender: eric@ericabrahamsen.net) by mail.ericabrahamsen.net (Postfix) with ESMTPSA id 0ED70FA023; Mon, 22 Jul 2019 17:21:21 +0000 (UTC) In-Reply-To: <87tvbe4ge1.fsf@tcd.ie> (Basil L. Contovounesios's message of "Mon, 22 Jul 2019 09:34:14 +0100") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:163600 Archived-At: On 07/22/19 09:34 AM, Basil L. Contovounesios wrote: > Eric Abrahamsen writes: > >> Second of all... unfortunately I don't know this code well enough to >> figure it out without sitting down with a chunk of time. So far as I can >> tell, nnmaildir scans the maildir directories using `directory-files', >> which by itself is very quick. Presumably what's slow is registering all >> the messages inside the directories, and I don't immediately see a way >> of preventing that. > > Would it be possible to do custom directory filtering in the > 'directory-files' virtual server setting of the nnmaildir backend? I guess it would be possible to set the directory-files setting to a lambda that accepted the same arguments as `directory-files', and only returned the desired folder. Again, I just don't know enough about the inner workings of nnmaildir to say for sure.