From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/88449 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Florian Weimer Newsgroups: gmane.emacs.gnus.general Subject: Re: Apparent quadratic behavior during mail fetching Date: Mon, 18 Mar 2019 15:34:18 +0100 Message-ID: <87r2b4uu8l.fsf@mid.deneb.enyo.de> References: <874lybizkj.fsf@mid.deneb.enyo.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="223214"; mail-complaints-to="usenet@blaine.gmane.org" To: ding@gnus.org Original-X-From: ding-owner+M36654@lists.math.uh.edu Mon Mar 18 15:35:24 2019 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from lists1.math.uh.edu ([129.7.128.208]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1h5tMJ-000vpG-Qp for ding-account@gmane.org; Mon, 18 Mar 2019 15:35:23 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.92) (envelope-from ) id 1h5tLS-0001Hd-Qi; Mon, 18 Mar 2019 09:34:30 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by lists1.math.uh.edu with esmtps (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1h5tLM-0001Eq-Nf for ding@lists.math.uh.edu; Mon, 18 Mar 2019 09:34:24 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92) (envelope-from ) id 1h5tLL-00022r-6A for ding@lists.math.uh.edu; Mon, 18 Mar 2019 09:34:24 -0500 Original-Received: from albireo.enyo.de ([5.158.152.32]) by quimby.gnus.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1h5tLH-0003fZ-67 for ding@gnus.org; Mon, 18 Mar 2019 15:34:21 +0100 Original-Received: from [172.17.203.2] (helo=deneb.enyo.de) by albireo.enyo.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) id 1h5tLG-00053M-6h for ding@gnus.org; Mon, 18 Mar 2019 14:34:18 +0000 Original-Received: from fw by deneb.enyo.de with local (Exim 4.92) (envelope-from ) id 1h5tLG-0003mf-4G for ding@gnus.org; Mon, 18 Mar 2019 15:34:18 +0100 In-Reply-To: <874lybizkj.fsf@mid.deneb.enyo.de> (Florian Weimer's message of "Wed, 29 Mar 2017 22:43:24 +0200") List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:88449 Archived-At: * Florian Weimer: > With Debian stretch's Enmcs 25.1.1, Gnus 5.13, I see what seems to be > quadratic behavior when processing incoming mail. > > My mail-sources setting in ~/.gnus looks like this: > > (setq mail-sources > `((directory :path ,(expand-file-name "~/Mail/INCOMING") > :suffix ""))) > > I see many, many stat system calls for the files in that directory. > It looks like the entire directory is reprocessed for each file > contained in it. > > I use > > (setq gnus-secondary-select-methods '((nnml ""))) > > as the mail storage backend. > > Does this ring a bell? If not, I'll try to find the root cause. It turns out that this: (setq nnmail-scan-directory-mail-source-once t) fixes it (in Emacs 26.1 at least).