From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/59120 Path: main.gmane.org!not-for-mail From: Romain Francoise Newsgroups: gmane.emacs.gnus.general Subject: Re: Gnus slow? Date: Fri, 12 Nov 2004 09:20:17 +0100 Organization: orebokech dot com Message-ID: <87u0rv8on2.fsf@orebokech.com> References: <87sm7hua65.fsf@orebokech.com> <87r7n0zjx9.fsf@orebokech.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1100247671 22485 80.91.229.6 (12 Nov 2004 08:21:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 12 Nov 2004 08:21:11 +0000 (UTC) Original-X-From: ding-owner+M7660@lists.math.uh.edu Fri Nov 12 09:20:56 2004 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13] ident=mail) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CSWfw-0006FM-00 for ; Fri, 12 Nov 2004 09:20:56 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1CSWfa-0004Lh-00; Fri, 12 Nov 2004 02:20:34 -0600 Original-Received: from util2.math.uh.edu ([129.7.128.23]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1CSWfS-0004LZ-00 for ding@lists.math.uh.edu; Fri, 12 Nov 2004 02:20:26 -0600 Original-Received: from justine.libertine.org ([66.139.78.221] ident=postfix) by util2.math.uh.edu with esmtp (Exim 4.30) id 1CSWfO-0007Mq-4x for ding@lists.math.uh.edu; Fri, 12 Nov 2004 02:20:22 -0600 Original-Received: from yeast.orebokech.com (yeast.orebokech.com [82.67.41.165]) by justine.libertine.org (Postfix) with ESMTP id D8EB03A022B for ; Fri, 12 Nov 2004 02:20:20 -0600 (CST) Original-Received: from pacem.orebokech.com (pacem.orebokech.com [192.168.1.3]) by yeast.orebokech.com (Postfix) with ESMTP id D215D12CF8 for ; Fri, 12 Nov 2004 09:20:17 +0100 (CET) Original-Received: by pacem.orebokech.com (Postfix, from userid 1000) id CD8B7B3015; Fri, 12 Nov 2004 09:20:17 +0100 (CET) Original-To: ding@gnus.org Mail-Copies-To: nobody X-Face: "1+OIb}NK>vxR1ZMk[Jx!/]O|A-v/P&|%hFquLxp20W.'g4KNUD/IdAUSmd'5`f)Q9%"4]%{P`TF2dC4v1~G5D}S( In-Reply-To: (Katsumi Yamaoka's message of "Fri, 12 Nov 2004 16:27:52 +0900") User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: main.gmane.org gmane.emacs.gnus.general:59120 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:59120 Katsumi Yamaoka writes: > I don't know why gnus-activate-group spends so many time and > seems to be called twice in B, but it is dominant. It is slow because in version B, Gnus issues GROUP commands to the NNTP server and it is synchronous so it has to wait for the answer from the server. To make it worse, it does it twice since groups are activated twice. You will find captures of the NNTP conversation between Gnus and news.gmane.org here: . Version A issues LIST ACTIVE commands only, asynchronously. Version B first issues GROUP commands for each of my groups, synchronously, then issues LIST ACTIVE commands like version A, then does GROUP commands again. I see two separate issues: - why does version B send GROUP commands where version A doesn't? They seem unnecessary. - even so, why does version B send them twice? > Some gnus-* functions are inlined in it and they cannot be > profiled by ELP individually. So, you need to plunge a scalpel > into those adhesion. To do that, replace all the > `(inline (gnus-* ...))' forms into `(gnus-* ...)' in the > gnus-activate-group function and recompile gnus-start.el. > Otherwise, it may be enough to only evaluate the function > definition of gnus-activate-group using `M-x eval-region' or > `M-x eval-last-sexp' (`C-x C-e'). > And then, perform ELP to the `gnus' package again. I will perform more ELP tests later today, thanks for investigating this issue. -- Romain Francoise | There's no stronger wind than it's a miracle -- http://orebokech.com/ | the one that blows down a | lonesome railroad line.