From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.help Subject: Re: profiler-report seems to be missing data? Date: Thu, 16 Aug 2018 17:32:32 +0200 Message-ID: <87600ae38v.fsf@web.de> References: <83600aiec6.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1534437129 24540 195.159.176.226 (16 Aug 2018 16:32:09 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 16 Aug 2018 16:32:09 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: help-gnu-emacs@gnu.org To: Eli Zaretskii Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Aug 16 18:32:05 2018 Return-path: Envelope-to: geh-help-gnu-emacs@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 1fqLBt-0006ES-2k for geh-help-gnu-emacs@m.gmane.org; Thu, 16 Aug 2018 18:32:05 +0200 Original-Received: from localhost ([::1]:56863 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fqLDy-0003XW-0n for geh-help-gnu-emacs@m.gmane.org; Thu, 16 Aug 2018 12:34:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37924) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fqKGX-00040k-2t for help-gnu-emacs@gnu.org; Thu, 16 Aug 2018 11:32:49 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fqKGW-0002jl-8H for help-gnu-emacs@gnu.org; Thu, 16 Aug 2018 11:32:49 -0400 Original-Received: from mout.web.de ([212.227.15.3]:38041) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fqKGL-0002cP-Oo; Thu, 16 Aug 2018 11:32:39 -0400 Original-Received: from drachen.dragon ([217.247.75.167]) by smtp.web.de (mrweb003 [213.165.67.108]) with ESMTPSA (Nemesis) id 0M5fxo-1g5dBg46OG-00xZN4; Thu, 16 Aug 2018 17:32:33 +0200 In-Reply-To: <83600aiec6.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 16 Aug 2018 17:19:21 +0300") X-Provags-ID: V03:K1:1KspZBrBAmHK9RYMbeXuoaNUxsHO1PQ9FHWR9ImBL8HYJ9MV7Hr wCilPh3uTs4qK8S4lIVxBXSN7nSha/jBTITrr2lrTP/meBNRJ5Llj9sMFXV6W9G9HsMqBhy 1DZM1n2x9xgfZ4anP8lVQ7Lz9S6RtY9j3gJTAZ45dIpwy/XxC6RIF1lVCxup0GlOR2D6fmE MV2fcVeWFgLMxj4q6/udQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:klwYwevvXrE=:MkV+xi1l6t8ZA9c6HL/b+n uT4QrextVTaqEXgEL/vQNGIC9rd/225K4LxUYBXGRvXdGMIXSknNHiKszIyyJ/2uK3hsxliy6 H4VvX+vq6PtaUkZsUCdE0e5KMNKzlbS5dxK6DYM/+Jxs69BjnI5JZg03VC0JMHPI8PcfQZyiY ueSrtQh9KrZ3dMiOqCWjVxK7cpeATuW+OtSxmbEKLK87HXQaF3W716jeJf+MyRZoQRzRFaIxS UvcRf90VOXX03cgXQmJVcYDjrOCh+TOHiLBLnGgg+JNC6wEOwO/ZBt9EJuLpR/t5kDFsqKsGj BIhWH5auGN397bTJeGYVTM3/fx5JyqHGbKHizFpGEFUaJLO/7rJUC3XssGoX0EA/75WKKR87y COiMHoK27d14/hwyuK7Q0o/0Th0GmFml2Y5FFoDsKJ4I/HyEJubvHNK/6TW1apO/FAePKzn56 qFCAcFvrUEn8Rtay7ho4qq3G/eTq95xrVASBGdIHEBRr/WDQ7thtymzGNZVGM1/vilRxHihro zGJmosY/SIAt65v604EluXsmVDZTsSOgGwSaMXoj7drg2TB5QOeyJfiX9p2Tw5SNbjTT7NAWi xP5SsESm8++s7h5fsmrJqj1h4i2MyzfkIiqV/c0ye1wm24itZXUF7xCsveA/TVq23AWuTBFu1 6wruPvM312Xc1wow3nAL5VAGCpN1aKH++6dScu+o1zsg4HcP0UhGjvmi7pk7VoncncdUyO9rz wiMFqHXaY7sRTcIRY7xEqicTzwLnl5YgjzAfWW0spkHsBBAWGjGHiKc93LHzBsdnjDl1Ktop X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 212.227.15.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:117672 Archived-At: Eli Zaretskii writes: > In that case, perhaps the bindings done by let* take a lot of time > because these are variables that become local when set, and you have > many buffers in your session? I think you are right - one doesn't even have to bind buffer local variables to get a profiler report where 'let' takes a lot of time though nothing inside 'let' seems to be responsible. If I profile this for example: #+begin_src emacs-lisp (defun test () (interactive) (mapcar (lambda (x) (let ((y1 1) (y2 2) (y3 3)) (ignore y3) (cons x (cons y1 y2)))) (number-sequence 1 1000000)) nil) #+end_src I get a similar profiler report. Obviously, the list mapped over is so huge that simply binding the variables inside the loop takes a significant part of time if the rest is fast (calling 'cons' in the example, 'puthash' in the code we speak about). Things will be different when running byte compiled code, I guess. Michael.