From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Charlie Andrews Newsgroups: gmane.emacs.help Subject: Re: profiler-report seems to be missing data? Date: Thu, 16 Aug 2018 13:12:23 -0400 Message-ID: References: <83600aiec6.fsf@gnu.org> <87600ae38v.fsf@web.de> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1534442338 3095 195.159.176.226 (16 Aug 2018 17:58:58 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 16 Aug 2018 17:58:58 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: michael_heerdegen@web.de Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Aug 16 19:58:54 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 1fqMXs-0000Zd-22 for geh-help-gnu-emacs@m.gmane.org; Thu, 16 Aug 2018 19:58:52 +0200 Original-Received: from localhost ([::1]:57534 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fqMZt-0004jl-Cj for geh-help-gnu-emacs@m.gmane.org; Thu, 16 Aug 2018 14:00:57 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42047) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fqLpA-0006PQ-N6 for help-gnu-emacs@gnu.org; Thu, 16 Aug 2018 13:12:41 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fqLp9-00078d-TI for help-gnu-emacs@gnu.org; Thu, 16 Aug 2018 13:12:40 -0400 Original-Received: from mail-it0-x232.google.com ([2607:f8b0:4001:c0b::232]:37100) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fqLp5-00076n-UZ; Thu, 16 Aug 2018 13:12:36 -0400 Original-Received: by mail-it0-x232.google.com with SMTP id h20-v6so7658997itf.2; Thu, 16 Aug 2018 10:12:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=9RZqaivPFPZPAnDZTqcDZaLDzH7hG6HENMHRd3jRvLY=; b=uusGaC0hBydB5hEe/9P9WLGQNiHZH5hspwFdXqKRmCAqbTGd6O/woe9C/cI7sSMNB3 5+maNJrBUtASQYKeoXL9n7gLVW+uWoX32D/CU6y90H0KSwTBS8u9jMStExWYuEzmdFi4 lnPedU4jzt/YiCU+GNRuYE7CwyHyGyCYL4WIqEhiZCZWGmccSEAuQQUg8p1AotQCuTrH 08rWReykT3PAZyp/MLvNRNY3IOSryup2GmEvhnM/+S61wJLAgYTSbOvDHdYMnkA+yIF1 pZZbeVwLzoJxXnLgqC/O57Yjv6vnZyjXdAphE8UMO5VHJOsoJC0hZ0jbNvWvr+ZAWV0m ihrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=9RZqaivPFPZPAnDZTqcDZaLDzH7hG6HENMHRd3jRvLY=; b=ZsEvP5cwy63e8s8FRygr1+kHMqznpT0v0j8718YxwJ0/omQ3hu4jFAAdj/uJ6kuCg8 HgMl1s92ps0vuHKhj/QK1V0xrjss3TzsUhI8YnGkmZ3zDUwHU+rXpRipJqt4J75xKt/5 Cq7dVoE2+7muurCFwWiszSnsdqeMSIVTy+fxH2bBN7vkeiHQWvYk4TQPDYBUupyutnNy ERhegOy4Qu1l62gh24cCiGttEI4hAGUW/0CxTcH7ufhn5MrLsFn/KgtO2fbO8gp9iGoz hOjKSJhnHq4vUBBpGYeIzG6PydQLf36s0Icnzo6qsyj156+40Imf5lFObez9B3zbWX/x /meg== X-Gm-Message-State: AOUpUlFsk1JvcjTgdXXXJ7JLtdE7OIm0Y5iTbnOBKqMAE6F7JEcv4XMD Gt3FdtkcUEMyLbM3UztmH+joetyyfWjcXLW1dFOeGg== X-Google-Smtp-Source: AA+uWPwLza7bMmS++ZYaVbGhDSbO9YDiCJIzkHJr3qe5kGSPgkd4IsjcYQHieklzW5R6Zs6nIOhVz3s43JUIcVnkPao= X-Received: by 2002:a02:105:: with SMTP id c5-v6mr27053235jad.139.1534439554647; Thu, 16 Aug 2018 10:12:34 -0700 (PDT) In-Reply-To: <87600ae38v.fsf@web.de> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4001:c0b::232 X-Mailman-Approved-At: Thu, 16 Aug 2018 13:59:13 -0400 X-Content-Filtered-By: Mailman/MimeDel 2.1.21 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:117675 Archived-At: Any tips on making these let bindings faster? I've read online that enabling lexical binding for the plugin might help. On Thu, Aug 16, 2018 at 12:34 PM Michael Heerdegen wrote: > 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. > >