From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Emanuel Berg via "Emacs development discussions." Newsgroups: gmane.emacs.devel Subject: Re: interactive feel of Emacs: the need for speed, and -Q [measure.el] Date: Tue, 07 Apr 2020 18:25:46 +0200 Message-ID: <87mu7njm9h.fsf@ebih.ebihd> References: <87tv26qvwh.fsf@ebih.ebihd> Reply-To: Emanuel Berg Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="70548"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) To: emacs-devel@gnu.org Cancel-Lock: sha1:df9grgE3UtxrVh4PFcUBKjcXBZE= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Apr 07 18:26:50 2020 Return-path: Envelope-to: ged-emacs-devel@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 1jLr3q-000IFR-2i for ged-emacs-devel@m.gmane-mx.org; Tue, 07 Apr 2020 18:26:50 +0200 Original-Received: from localhost ([::1]:50494 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jLr3p-0003su-51 for ged-emacs-devel@m.gmane-mx.org; Tue, 07 Apr 2020 12:26:49 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50004) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jLr2z-0002ul-89 for emacs-devel@gnu.org; Tue, 07 Apr 2020 12:25:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jLr2x-0004FL-7Y for emacs-devel@gnu.org; Tue, 07 Apr 2020 12:25:56 -0400 Original-Received: from ciao.gmane.io ([159.69.161.202]:39848) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jLr2x-0004A7-0x for emacs-devel@gnu.org; Tue, 07 Apr 2020 12:25:55 -0400 Original-Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1jLr2u-000H8K-2h for emacs-devel@gnu.org; Tue, 07 Apr 2020 18:25:52 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Mail-Copies-To: never X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 159.69.161.202 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:246616 Archived-At: Drew Adams wrote: > Not sure what you're asking. But if you're asking > which parts of your non -Q setup could be causing > a slowdown then the answer is typically to bisect > your init file, to narrow the search. Why would a bunch of defuns that are not called slow down the interactive feel w/o even being invoked? Like I said, I think I have as much zsh [1] that I have Elisp [2] but it sure doesn't slow down zsh in general. It is mostly the same stuff, just functions that do stuff. They aren't invoked unless they user says so. But I don't have to do _anything_ to instantly feel that -Q is much, much faster. Just typing and doing M-x! What in general slows it down? Or does a defun, that isn't called, slow it down by just being there, in Emacs? If so, why? If it doesn't, what stuff should you look out for? Hooks I accept slow things down, if they are called all the time and you put elaborate things in them, but I don't think they are and I don't. advice I used literally once in 100+ files. What else is slowing things down in general I don't know. So "non -Q" only does that and only that, brings in the user's init stuff? Nothing else that the user is unaware of and do not control with/from his/her init file(s)? [1] https://dataswamp.org/~incal/conf/.zsh/ [2] https://dataswamp.org/~incal/emacs-init/ -- underground experts united http://user.it.uu.se/~embe8573 https://dataswamp.org/~incal