From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#41242: Port feature/native-comp to Windows Date: Thu, 14 May 2020 16:42:36 +0300 Message-ID: <83lflu63ar.fsf@gnu.org> References: <83o8qr62up.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="70086"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 41242@debbugs.gnu.org, akrl@sdf.org To: Nicolas =?UTF-8?Q?B=C3=A9rtolo?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu May 14 15:43:12 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jZE8l-000I60-2D for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 14 May 2020 15:43:11 +0200 Original-Received: from localhost ([::1]:51554 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jZE8j-0003IP-PZ for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 14 May 2020 09:43:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33494) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jZE8c-0003GG-Nd for bug-gnu-emacs@gnu.org; Thu, 14 May 2020 09:43:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49110) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jZE8c-000531-Dy for bug-gnu-emacs@gnu.org; Thu, 14 May 2020 09:43:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jZE8c-0003Xo-8I for bug-gnu-emacs@gnu.org; Thu, 14 May 2020 09:43:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 14 May 2020 13:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41242 X-GNU-PR-Package: emacs Original-Received: via spool by 41242-submit@debbugs.gnu.org id=B41242.158946378013615 (code B ref 41242); Thu, 14 May 2020 13:43:02 +0000 Original-Received: (at 41242) by debbugs.gnu.org; 14 May 2020 13:43:00 +0000 Original-Received: from localhost ([127.0.0.1]:60656 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jZE8a-0003XX-15 for submit@debbugs.gnu.org; Thu, 14 May 2020 09:43:00 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:58730) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jZE8Y-0003XJ-Ml for 41242@debbugs.gnu.org; Thu, 14 May 2020 09:42:58 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:32899) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jZE8T-00051h-Ar; Thu, 14 May 2020 09:42:53 -0400 Original-Received: from [176.228.60.248] (port=1686 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jZE8S-00057K-Qo; Thu, 14 May 2020 09:42:53 -0400 In-Reply-To: (message from Nicolas =?UTF-8?Q?B=C3=A9rtolo?= on Wed, 13 May 2020 17:01:59 -0300) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:180207 Archived-At: > From: Nicolas BĂ©rtolo > Date: Wed, 13 May 2020 17:01:59 -0300 > Cc: 41242@debbugs.gnu.org > > > Did you manage to understand why? How many bytes of *.eln files does > > Emacs load while autoloading Helm, for example? > > I don't know how to measure that, sorry. AFAIK Emacs just maps many subr to the > correct function pointers and the OS takes care of loading the appropriate code > on page faults. > > My guess is that autoloading triggers a long series of eln loading operations, > that, as a group, are very expensive. > > Do you know what profiler I could use to check what Emacs is doing? I'd begin with Emacs's built-in "M-x profiler-start". After invoking that, start the Helm loading command, and when it ends, invoke profiler-report. Post the resulting profile fully expanded, and maybe that will give some clues about what to examine next. It will also be useful to have a comparable measurement from GNU/Linux, so that we could compare the profiles and the elapsed times.