unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Alan Mackenzie <acm@muc.de>
To: Sujith Manoharan <sujith.wall@gmail.com>
Cc: 59530@debbugs.gnu.org
Subject: bug#59530: 29.0.50; Fontification hangs with C header file
Date: Sat, 26 Nov 2022 15:09:07 +0000	[thread overview]
Message-ID: <Y4IsE2+ycE89xR2a@ACM> (raw)
In-Reply-To: <87wn7lm1o4.fsf@gmail.com>

Hello, Sujith.

On Thu, Nov 24, 2022 at 09:32:03 +0530, Sujith Manoharan wrote:
> Opening this header file with lots of macros makes Emacs
> very slow.

> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/gpu/drm/amd/include/asic_reg/dce/dce_12_0_sh_mask.h

> Same behavior is seen with other header files inside asic_reg.
> Fontification/scrolling hangs Emacs and it becomes unusable.

Thanks for taking the trouble to report this bug, and sorry for the
irritation it has caused.

> Bug #25706 suggested the workaround 'fast-but-imprecise-scrolling',
> but enabling it doesn't seem to improve things now.

I think the bug has already been fixed, coincidentally on Thursday, by
the following commit to master:

commit 3208a42c47c4f98cb03c4b15164ca83113244b40
Author: Alan Mackenzie <acm@muc.de>
Date:   Thu Nov 24 10:51:03 2022 +0000

    CC Mode: Make it scroll fast over buffers with only #define's

, committed just a few hours after you reported the bug.

I have a test script which scrolls all the way through a file, timing
how long it takes.  Before the above commit, it took ~1524 seconds on
dce_12-0_sh_mask.h, after the commit, it took ~31.4 seconds.

Would you please update your Emacs version, and see if this commit has
indeed resolved the problem, then let us know.

Thanks!

> In GNU Emacs 29.0.50 (build 2, x86_64-pc-linux-gnu, X toolkit, cairo
>  version 1.17.6, Xaw scroll bars) of 2022-11-24 built on comp-lnx
> Repository revision: b37604c263e4813dc2a8b80e4e9131a3961c4f3e
> Repository branch: master
> Windowing system distributor 'The X.Org Foundation', version 11.0.12101004
> System Description: Arch Linux

[ .... ]

-- 
Alan Mackenzie (Nuremberg, Germany).





  parent reply	other threads:[~2022-11-26 15:09 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-24  4:02 bug#59530: 29.0.50; Fontification hangs with C header file Sujith Manoharan
2022-11-26 11:02 ` Eli Zaretskii
2022-11-26 14:11   ` Alan Mackenzie
2022-11-26 15:09 ` Alan Mackenzie [this message]
2022-11-27  8:45   ` Sujith Manoharan
2022-11-28 19:46     ` Alan Mackenzie

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Y4IsE2+ycE89xR2a@ACM \
    --to=acm@muc.de \
    --cc=59530@debbugs.gnu.org \
    --cc=sujith.wall@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).