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 10:36:43 +0300 Message-ID: <83vboau92s.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> <831tqyvph5.fsf@gnu.org> <87lhp6q2dm.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=iso-8859-1 Content-Transfer-Encoding: 8BIT X-Trace: ger.gmane.org 1411717054 31458 80.91.229.3 (26 Sep 2014 07:37:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 26 Sep 2014 07:37:34 +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 09:37:26 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 1XXQ5m-00012N-9u for geb-bug-gnu-emacs@m.gmane.org; Fri, 26 Sep 2014 09:37:26 +0200 Original-Received: from localhost ([::1]:45163 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XXQ5l-0007la-T1 for geb-bug-gnu-emacs@m.gmane.org; Fri, 26 Sep 2014 03:37:25 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59315) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XXQ5b-0007dK-SO for bug-gnu-emacs@gnu.org; Fri, 26 Sep 2014 03:37:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XXQ5T-0003O0-IS for bug-gnu-emacs@gnu.org; Fri, 26 Sep 2014 03:37:15 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:60987) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XXQ5T-0003NX-G4 for bug-gnu-emacs@gnu.org; Fri, 26 Sep 2014 03:37:07 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XXQ5N-0005ON-Qs; Fri, 26 Sep 2014 03:37: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 07:37:01 +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.141171700920709 (code B ref 18522); Fri, 26 Sep 2014 07:37:01 +0000 Original-Received: (at 18522) by debbugs.gnu.org; 26 Sep 2014 07:36:49 +0000 Original-Received: from localhost ([127.0.0.1]:52550 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XXQ5A-0005Nu-Ht for submit@debbugs.gnu.org; Fri, 26 Sep 2014 03:36:49 -0400 Original-Received: from mtaout23.012.net.il ([80.179.55.175]:45352) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XXQ57-0005Nk-76 for 18522@debbugs.gnu.org; Fri, 26 Sep 2014 03:36:46 -0400 Original-Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0NCH00400ZJR0B00@a-mtaout23.012.net.il> for 18522@debbugs.gnu.org; Fri, 26 Sep 2014 10:36:42 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NCH003WWZT6YI20@a-mtaout23.012.net.il>; Fri, 26 Sep 2014 10:36:42 +0300 (IDT) In-reply-to: <87lhp6q2dm.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:93763 Archived-At: > From: Peter Münster > Cc: monnier@iro.umontreal.ca, 18522@debbugs.gnu.org > Date: Fri, 26 Sep 2014 09:15:01 +0200 > > > 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, I forgot to label the columns: 303 and 2464 are "CPU samples". No, it's me that needs to be sorry: I keep forgetting that. > > 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. > > On line 16, the slow mapcar takes 1090 CPU samples and the fast one 64. > Below line 16, the profiler outputs are different and I don't know why > and how to debug further... I think the conclusion is that parse-time-string takes the blame. To see what part in parse-time-string is the culprit, perhaps load parse-time.el (the source) before the experiment, and maybe the profile will show more useful info.