From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Slow redisplay Date: Sun, 25 Aug 2019 14:10:09 +0300 Message-ID: <83k1b1h566.fsf@gnu.org> References: <20190825103251.osstrlohmzp6bmvr@Ergus> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="197690"; mail-complaints-to="usenet@blaine.gmane.org" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Aug 25 13:10:29 2019 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1i1qPl-000pJI-3c for geh-help-gnu-emacs@m.gmane.org; Sun, 25 Aug 2019 13:10:29 +0200 Original-Received: from localhost ([::1]:41826 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i1qPj-0000BT-By for geh-help-gnu-emacs@m.gmane.org; Sun, 25 Aug 2019 07:10:27 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54970) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i1qPW-0000BJ-Hx for help-gnu-emacs@gnu.org; Sun, 25 Aug 2019 07:10:15 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:47302) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1i1qPW-0003az-EN for help-gnu-emacs@gnu.org; Sun, 25 Aug 2019 07:10:14 -0400 Original-Received: from [176.228.60.248] (port=4014 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1i1qPT-00046h-PE for help-gnu-emacs@gnu.org; Sun, 25 Aug 2019 07:10:12 -0400 In-reply-to: <20190825103251.osstrlohmzp6bmvr@Ergus> (message from Ergus on Sun, 25 Aug 2019 12:32:51 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 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:121384 Archived-At: > Date: Sun, 25 Aug 2019 12:32:51 +0200 > From: Ergus > Cc: Eli Zaretskii , help-gnu-emacs@gnu.org > > With the actual master branch I am observing a very important lagging in > redisplay after being using emacs for 3-4 of hours. The rediplay happens > like in stop motion speed, I can see the redisplay line being updated > slowly and it takes sometimes like 1 seconds (from the top to the bottom > of the screen) in my best laptop. > > (I only use emacs in tui) So the only solution after a while is to close > emacs and reopen again. > > I used to have these lines: > > (defun my/minibuffer-setup-hook () > (setq gc-cons-threshold most-positive-fixnum)) > > (defun my/minibuffer-exit-hook () > (setq gc-cons-threshold 800000)) > > (add-hook 'minibuffer-setup-hook #'my/minibuffer-setup-hook) > (add-hook 'minibuffer-exit-hook #'my/minibuffer-exit-hook) > > In my config, but after removing them (because someone suggested that > the redisplay lagging could be related with the gc) the problem is still > there (less critical, but still there after some hours). > > Any suggestion to find where is the issue comming from? Or what should I > see to make a better report? If you set garbage-collection-messages non-nil, do you see any GC messages when Emacs is lagging input? If so, does invoking "M-x garbage-collect RET" manual fix that?