From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#45248: 28.0.50; Emacs freezes with big C functions Date: Thu, 24 Dec 2020 11:50:14 +0000 Message-ID: References: <87a6ufen1w.fsf@gmail.com> <87lfdvmjpw.fsf@gmail.com> <87pn36o1le.fsf@gmail.com> <87mty5rxsz.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6375"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 45248-done@debbugs.gnu.org To: Ravine Var Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Dec 24 12:51:55 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 1ksP9v-0001Zx-PB for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 24 Dec 2020 12:51:55 +0100 Original-Received: from localhost ([::1]:42876 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ksP9u-00034f-Pm for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 24 Dec 2020 06:51:54 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44570) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ksP94-0002gy-Nt for bug-gnu-emacs@gnu.org; Thu, 24 Dec 2020 06:51:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:43310) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ksP94-00006T-Fk for bug-gnu-emacs@gnu.org; Thu, 24 Dec 2020 06:51:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ksP94-0001dd-DA for bug-gnu-emacs@gnu.org; Thu, 24 Dec 2020 06:51:02 -0500 Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Thu, 24 Dec 2020 11:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 45248 X-GNU-PR-Package: emacs Mail-Followup-To: 45248@debbugs.gnu.org, acm@muc.de, ravine.var@gmail.com Original-Received: via spool by 45248-done@debbugs.gnu.org id=D45248.16088106286248 (code D ref 45248); Thu, 24 Dec 2020 11:51:02 +0000 Original-Received: (at 45248-done) by debbugs.gnu.org; 24 Dec 2020 11:50:28 +0000 Original-Received: from localhost ([127.0.0.1]:54856 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ksP8V-0001ci-BX for submit@debbugs.gnu.org; Thu, 24 Dec 2020 06:50:27 -0500 Original-Received: from colin.muc.de ([193.149.48.1]:39238 helo=mail.muc.de) by debbugs.gnu.org with smtp (Exim 4.84_2) (envelope-from ) id 1ksP8Q-0001cP-0v for 45248-done@debbugs.gnu.org; Thu, 24 Dec 2020 06:50:26 -0500 Original-Received: (qmail 22749 invoked by uid 3782); 24 Dec 2020 11:50:15 -0000 Original-Received: from acm.muc.de (p4fe15940.dip0.t-ipconnect.de [79.225.89.64]) by localhost.muc.de (tmda-ofmipd) with ESMTP; Thu, 24 Dec 2020 12:50:15 +0100 Original-Received: (qmail 9130 invoked by uid 1000); 24 Dec 2020 11:50:15 -0000 Content-Disposition: inline In-Reply-To: <87mty5rxsz.fsf@gmail.com> X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de 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:196652 Archived-At: Hello, Ravine. On Wed, Dec 23, 2020 at 08:48:26 +0530, Ravine Var wrote: > Alan Mackenzie writes: > > Sorry it's taken a little while to reply. I've been preoccupied with > > another bug in the meantime. > No problem. > > By "scrolling becomes slower", do you mean (1) that the time for an > > isolated single full screen scroll becomes longer, the further you are > > through that struct? Or do you mean (2) that on auto-repeat of the C-v > > or PageDown key, the scrolling becomes slower? > The second behavior. Opening the file and scrolling from the > the beginning with C-v becomes progressively slower. > > If you mean (2), from emacs -Q without enabling > > fast-but-imprecise-scrolling, then you are just seeing the normal > > expected, but unfortunate behaviour of Emacs: Emacs will not redisplay a > > screen as long as there is keyboard input unprocessed, but Emacs is > > spending its time fontifying the intermediate screens (which are not > > about to be displayed) as part of processing that input. 30 characters > > per second is faster than CC Mode can paint a single screen. > Ok. > > For problem (2) I recommend, again, enabling > > fast-but-imprecise-scrolling. > Without the patch in message 11, scrolling is bad > even when fast-but-imprecise-scrolling is enabled. > With the patch, things are much better and there > is no lockup, once fast-but-imprecise-scrolling is enabled. > I think this is enough for this bug - thanks for > looking into this issue. Thanks! I've found some infinite loops, which I've also corrected. And I've committed the patch to the savannah master branch. So, I'm closing the bug with this post. Thanks for all the testing and profiling in sorting out this bug. -- Alan Mackenzie (Nuremberg, Germany).