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: Sat, 11 Apr 2020 22:51:11 -0400 Message-ID: <874ktp4dsw.fsf@md5i.com> References: <87tv26qvwh.fsf@ebih.ebihd> <87mu7njm9h.fsf@ebih.ebihd> <87h7xv44xr.fsf@md5i.com> <875zeasexm.fsf@ebih.ebihd> <87d08i3vvk.fsf@md5i.com> <87h7xph5a4.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="118381"; 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 Sun Apr 12 04:52:34 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 1jNSja-000Uhx-9Q for ged-emacs-devel@m.gmane-mx.org; Sun, 12 Apr 2020 04:52:34 +0200 Original-Received: from localhost ([::1]:58280 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jNSjZ-0002cM-7C for ged-emacs-devel@m.gmane-mx.org; Sat, 11 Apr 2020 22:52:33 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48559) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jNSiI-00024v-01 for emacs-devel@gnu.org; Sat, 11 Apr 2020 22:51:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jNSiG-0002vj-PN for emacs-devel@gnu.org; Sat, 11 Apr 2020 22:51:13 -0400 Original-Received: from md5i.com ([75.151.244.229]:37988) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jNSiG-0002vb-He for emacs-devel@gnu.org; Sat, 11 Apr 2020 22:51:12 -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=XxUcHetfXTr0RCFM1rM1nuSHi/+y6R4WzNgwF3ulmOI=; b=K4JPvbuNTotvRr2Lf/J6+i+KMh 3/slMzSEr+6SQMDrlGS1YaoMfY18iL5/6c6QpoLe27LgYEKzM9mzBUZAXYS+9clFHzNg8l4hZ/VvP LtUCw/JKEEu5Q/8lhnkgGQAeE; Original-Received: from md5i by md5i.com with local (Exim 4.93) (envelope-from ) id 1jNSiF-001LOb-Cm for emacs-devel@gnu.org; Sat, 11 Apr 2020 22:51:11 -0400 In-Reply-To: <87h7xph5a4.fsf@ebih.ebihd> (Emanuel Berg via's message of "Sun, 12 Apr 2020 03:16:51 +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:246850 Archived-At: I'm not prepared to respond in detail right now, but I will ask a couple of questions that pop into my head right now. First, is the slow-down you notice in all buffers, or specifically in buffers in specific modes (like c-mode)? If the latter, what is the value of `after-change-functions' in those buffers? Although this hook isn't the only possible place that can cause slow downs, it is a hook that can be called very often, and if too much is run in it, that can slow things down. Another thing that can slow things down is excessive garbage collection. Try setting `garbage-collection-messages' to non-nil. This will cause messages to be output when Emacs does a GC run. Run it with and without -Q and see if there is a significant difference in the frequency. Possibly tweak `gc-cons-threshold' and see if it makes a difference. Others may be able to suggest more, but this is the best I can suggest while fighting off a (literal) headache. -- Michael Welsh Duggan (md5i@md5i.com)