From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/18828 Path: news.gmane.org!.POSTED!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.gnus.user Subject: Re: slow `B m' due to a require for each of gnus-active-hashtb Date: Wed, 11 Apr 2018 20:16:23 +0200 Message-ID: <87h8oh38y0.fsf@mouse.gnus.org> References: <87oa52gubz.fsf@fsfe.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1523470478 19717 195.159.176.226 (11 Apr 2018 18:14:38 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 11 Apr 2018 18:14:38 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: info-gnus-english@gnu.org To: Kevin Brubeck Unhammer Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Wed Apr 11 20:14:34 2018 Return-path: Envelope-to: gegu-info-gnus-english@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f6KGQ-00053T-2m for gegu-info-gnus-english@m.gmane.org; Wed, 11 Apr 2018 20:14:34 +0200 Original-Received: from localhost ([::1]:46149 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f6KIW-0003Eq-Nt for gegu-info-gnus-english@m.gmane.org; Wed, 11 Apr 2018 14:16:44 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41015) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f6KIQ-0003ET-8M for info-gnus-english@gnu.org; Wed, 11 Apr 2018 14:16:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f6KIN-0007DC-08 for info-gnus-english@gnu.org; Wed, 11 Apr 2018 14:16:38 -0400 Original-Received: from hermes.netfonds.no ([80.91.224.195]:56301) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f6KIM-000774-PC for info-gnus-english@gnu.org; Wed, 11 Apr 2018 14:16:34 -0400 Original-Received: from 46.67.12.60.tmi.telenormobil.no ([46.67.12.60] helo=corrigan) by hermes.netfonds.no with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1f6KIH-00072W-NB; Wed, 11 Apr 2018 20:16:31 +0200 Original-Received: from larsi by corrigan with local (Exim 4.89) (envelope-from ) id 1f6KIC-00027v-0x; Wed, 11 Apr 2018 20:16:24 +0200 In-Reply-To: <87oa52gubz.fsf@fsfe.org> (Kevin Brubeck Unhammer's message of "Tue, 09 Aug 2016 11:33:36 +0200") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 80.91.224.195 X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Original-Sender: "info-gnus-english" Xref: news.gmane.org gmane.emacs.gnus.user:18828 Archived-At: Kevin Brubeck Unhammer writes: > On Gnus v5.13, Emacs 24.5.1, doing `B m` takes quite a long time (10s > and up) before it shows any prompt (but seemingly only after I've been > using Emacs for a while). If I toggle-debug-on-quit and poormansprofile > it a bit, the backtraces always look like this: > > Debugger entered--Lisp error: (quit) > require(nntp) > gnus-get-function((nntp "news.gwene.org") request-accept-article t) > gnus-valid-move-group-p(nntp+news\.gwene\.org:gwene\.net\.patdavid\.gimp) [...] > It's a lot faster if I simply comment out (require (car method)) from > gnus-get-function (the require seems to still be there in git). If > that's not safe (how many backend methods are there?), then perhaps > there could be an alternate active group storage that organises active > groups hierarchically, so it would be possible to go from > valid-move-group to a set of groups? Hm... it's odd that require should be the bottleneck here, because it's a NOOP if the feature has already been loaded. (benchmark-run 100000 (require 'nntp)) takes 0.1s on my machine. How many groups do you have? :-) -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no