From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter =?UTF-8?Q?M=C3=BCnster?= Newsgroups: gmane.emacs.bugs Subject: bug#18522: 24.4.50; mapcar is very slow Date: Mon, 22 Feb 2016 21:41:11 +0100 Message-ID: <87r3g4o4uw.fsf@roche-blanche.net> References: <8738bkdjqg.fsf@micropit.roche-blanche.homenet.org> <877fvli0qt.fsf@building.gnus.org> <87bnkb1n9w.fsf@roche-blanche.net> <87wpqh9gm3.fsf@gnus.org> <87io1nnx88.fsf@roche-blanche.net> <87vb5l8en7.fsf@gnus.org> <83wpq1rt5o.fsf@gnu.org> <8737so5neo.fsf@gnus.org> <831t87re7a.fsf@gnu.org> <87bn7b3hnz.fsf@roche-blanche.net> <83lh6fpv4z.fsf@gnu.org> <87h9h2xr9k.fsf@roche-blanche.net> <56C99AD0.2000309@gmx.at> <87wppywbaz.fsf@roche-blanche.net> <87d1rquo4a.fsf@roche-blanche.net> <878u2eun9o.fsf@roche-blanche.net> <834md2niqt.fsf@gnu.org> <87k2lyszy2.fsf@roche-blanche.net> <83bn79n66p.fsf@gnu.org> <87vb5hry9y.fsf@roche-blanche.net> <83r3g4lnor.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1456173758 7403 80.91.229.3 (22 Feb 2016 20:42:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 22 Feb 2016 20:42:38 +0000 (UTC) Cc: larsi@gnus.org, 18522@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Feb 22 21:42:28 2016 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 1aXxJK-0003bu-26 for geb-bug-gnu-emacs@m.gmane.org; Mon, 22 Feb 2016 21:42:26 +0100 Original-Received: from localhost ([::1]:51828 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aXxJJ-0005Je-BJ for geb-bug-gnu-emacs@m.gmane.org; Mon, 22 Feb 2016 15:42:25 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47032) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aXxJ0-0004nU-QL for bug-gnu-emacs@gnu.org; Mon, 22 Feb 2016 15:42:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aXxIw-0004eq-P2 for bug-gnu-emacs@gnu.org; Mon, 22 Feb 2016 15:42:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:41397) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aXxIw-0004ek-La for bug-gnu-emacs@gnu.org; Mon, 22 Feb 2016 15:42:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aXxIw-00067x-34; Mon, 22 Feb 2016 15:42:02 -0500 X-Loop: help-debbugs@gnu.org In-Reply-To: <8738bkdjqg.fsf@micropit.roche-blanche.homenet.org> Resent-From: Peter =?UTF-8?Q?M=C3=BCnster?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bugs@gnus.org Resent-Date: Mon, 22 Feb 2016 20:42: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: Original-Received: via spool by 18522-submit@debbugs.gnu.org id=B18522.145617368823508 (code B ref 18522); Mon, 22 Feb 2016 20:42:02 +0000 Original-Received: (at 18522) by debbugs.gnu.org; 22 Feb 2016 20:41:28 +0000 Original-Received: from localhost ([127.0.0.1]:38524 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aXxIO-000676-LZ for submit@debbugs.gnu.org; Mon, 22 Feb 2016 15:41:28 -0500 Original-Received: from smtp02.smtpout.orange.fr ([80.12.242.124]:44143 helo=smtp.smtpout.orange.fr) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aXxIN-00066t-AZ for 18522@debbugs.gnu.org; Mon, 22 Feb 2016 15:41:27 -0500 Original-Received: from micropit.roche-blanche.homenet.org ([2.14.65.45]) by mwinf5d49 with ME id MYhC1s00A0yazV603YhCf2; Mon, 22 Feb 2016 21:41:20 +0100 X-ME-Helo: micropit.roche-blanche.homenet.org X-ME-Auth: ZHJwbUB3YW5hZG9vLmZy X-ME-Date: Mon, 22 Feb 2016 21:41:20 +0100 X-ME-IP: 2.14.65.45 Original-Received: by micropit.roche-blanche.homenet.org (Postfix, from userid 1000) id 07042F2F4; Mon, 22 Feb 2016 21:41:12 +0100 (CET) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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:113493 Archived-At: On Mon, Feb 22 2016, Eli Zaretskii wrote: > I think the next step is to profile the code below "let". Can you try > using 'perf' for that purpose? Slow emacs: almost all time is spent in Fset_default (96%) Fast emacs: 25.36% emacs emacs [.] eval_sub 10.73% emacs emacs [.] Fset_default 9.63% emacs emacs [.] Flength 6.54% emacs emacs [.] unbind_to 5.44% emacs emacs [.] hash_lookup 4.53% emacs emacs [.] Flet You can try it too on your running sessions: "perf record -p PID" and then "perf report". (just use something like "dotimes (i 1000000000)") -- Peter