From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#18522: 24.4.50; mapcar is very slow Date: Fri, 26 Sep 2014 09:57:10 +0300 Message-ID: <831tqyvph5.fsf@gnu.org> References: <8738bkdjqg.fsf@micropit.roche-blanche.homenet.org> <87mw9rdawj.fsf@micropit.roche-blanche.homenet.org> <87wq8ridqz.fsf@micropit.roche-blanche.homenet.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT X-Trace: ger.gmane.org 1411714715 3658 80.91.229.3 (26 Sep 2014 06:58:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 26 Sep 2014 06:58:35 +0000 (UTC) Cc: 18522@debbugs.gnu.org To: Peter =?UTF-8?Q?M=C3=BCnster?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Sep 26 08:58:27 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XXPU0-0008O9-C1 for geb-bug-gnu-emacs@m.gmane.org; Fri, 26 Sep 2014 08:58:24 +0200 Original-Received: from localhost ([::1]:44998 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XXPU0-0008DX-2c for geb-bug-gnu-emacs@m.gmane.org; Fri, 26 Sep 2014 02:58:24 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53503) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XXPTr-0008DF-1t for bug-gnu-emacs@gnu.org; Fri, 26 Sep 2014 02:58:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XXPTl-0002aa-4A for bug-gnu-emacs@gnu.org; Fri, 26 Sep 2014 02:58:14 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:60966) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XXPTl-0002aC-0a for bug-gnu-emacs@gnu.org; Fri, 26 Sep 2014 02:58:09 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XXPTe-0004Qa-GR; Fri, 26 Sep 2014 02:58:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bugs@gnus.org Resent-Date: Fri, 26 Sep 2014 06:58:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18522 X-GNU-PR-Package: emacs,gnus X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 18522-submit@debbugs.gnu.org id=B18522.141171463616957 (code B ref 18522); Fri, 26 Sep 2014 06:58:02 +0000 Original-Received: (at 18522) by debbugs.gnu.org; 26 Sep 2014 06:57:16 +0000 Original-Received: from localhost ([127.0.0.1]:52529 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XXPSt-0004PR-M6 for submit@debbugs.gnu.org; Fri, 26 Sep 2014 02:57:16 -0400 Original-Received: from mtaout25.012.net.il ([80.179.55.181]:53096) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XXPSp-0004PF-Rn for 18522@debbugs.gnu.org; Fri, 26 Sep 2014 02:57:13 -0400 Original-Received: from conversion-daemon.mtaout25.012.net.il by mtaout25.012.net.il (HyperSendmail v2007.08) id <0NCH00E00XI87400@mtaout25.012.net.il> for 18522@debbugs.gnu.org; Fri, 26 Sep 2014 09:52:13 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout25.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NCH00D0EXR1XP10@mtaout25.012.net.il>; Fri, 26 Sep 2014 09:52:13 +0300 (IDT) In-reply-to: <87wq8ridqz.fsf@micropit.roche-blanche.homenet.org> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:93759 Archived-At: > From: Peter Münster > Date: Thu, 25 Sep 2014 23:36:36 +0200 > Cc: 18522@debbugs.gnu.org > > Please find attached 2 files with profiler-reports when entering a Gnus > group: > - profiler-slow.txt: entering a group is slow, and emacs was uptime since > about 3 days > - profiler-fast.txt: entering the same group after a fresh restart of emacs Is that for the same input? How come command-execute was called 2464 times in the first profile, and only 303 times in the second? This alone can explain an 8-fold slowdown. Sorry if this is a silly question: I don't use Gnus. But to compare 2 profiles, you need to create each one of them when Emacs does the same job in each time. Otherwise, there's a factor at work that we cannot glean from the profile alone. Anyway, looks like gnus-summary-read-group-1 takes a lot of CPU in both cases, which is above the mapcar part. Below mapcar, the most expensive part is parse-time-string, which doesn't really surprise me.