From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Michael Welsh Duggan Newsgroups: gmane.emacs.devel Subject: Re: interactive feel of Emacs: the need for speed, and -Q [measure.el] Date: Tue, 07 Apr 2020 12:49:04 -0400 Message-ID: <87h7xv44xr.fsf@md5i.com> References: <87tv26qvwh.fsf@ebih.ebihd> <87mu7njm9h.fsf@ebih.ebihd> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="47040"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Apr 07 18:50:36 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 1jLrQq-000C8Z-EZ for ged-emacs-devel@m.gmane-mx.org; Tue, 07 Apr 2020 18:50:36 +0200 Original-Received: from localhost ([::1]:50834 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jLrQp-00066I-Ez for ged-emacs-devel@m.gmane-mx.org; Tue, 07 Apr 2020 12:50:35 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54233) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jLrPP-00051l-1V for emacs-devel@gnu.org; Tue, 07 Apr 2020 12:49:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jLrPN-0007Zh-SD for emacs-devel@gnu.org; Tue, 07 Apr 2020 12:49:06 -0400 Original-Received: from md5i.com ([75.151.244.229]:35086) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jLrPN-0007ZE-Jh for emacs-devel@gnu.org; Tue, 07 Apr 2020 12:49:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=md5i.com; s=dkim; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:References: Subject:To:From:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=P94vZ9avMCfmkQeW5lKhD13q0qiDDs3O3uLqWkMOhzY=; b=XVgGHz7w/Xp/Y1+7qkLqWffXXF Oq3OzjLuOP2mAggTPHGbgpHn8ojOLQ0h+IqfBTauOH1dESC7I2JTsCopn2QBesl6ywzDV34T9c9J0 N8NYhzRWY9XM4YbIhIlcD7y93; Original-Received: from md5i by md5i.com with local (Exim 4.93) (envelope-from ) id 1jLrPM-00FhjB-9n for emacs-devel@gnu.org; Tue, 07 Apr 2020 12:49:04 -0400 In-Reply-To: <87mu7njm9h.fsf@ebih.ebihd> (Emanuel Berg via's message of "Tue, 07 Apr 2020 18:25:46 +0200") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 75.151.244.229 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:246618 Archived-At: Emanuel Berg via "Emacs development discussions." writes: > 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? > > 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. > > [1] https://dataswamp.org/~incal/conf/.zsh/ It's hard to tell from your posted list of elisp files, as I don't really want to download and check them all. You'll want to check anything that you `require` that isn't something you wrote, as loading any elisp can add hooks, etc. > 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)? Emacs invoked without -Q also can load in a default init file and a site file. (See emacs info: "The Emacs Initialization File".) You can turn off the latter using --no-site-file (which is implied by -Q), and you can turn off the former by adding (setq inhibit-default-init t) in your init file. -- Michael Welsh Duggan (md5i@md5i.com)