Subject: bug#76505: 31.0.50; igc: M-x project-compile is slow

From: Eli Zaretskii <[email-masked]>
Date: Sun, 23 Feb 2025 21:11:00 +0200

> From: Ihor Radchenko <[email-masked]>
> Cc: [email-masked], [email-masked]
> Date: Sun, 23 Feb 2025 18:50:20 +0000
> 
> Eli Zaretskii <[email-masked]> writes:
> 
> >> See the attached.
> >
> > Looks like you have auto-revert enabled when compiling?
> 
> Hmm. Yes, I do. Because `magit-auto-revert-mode' (enabled by default).
> I explicitly disable global-auto-revert-mode in my config.
> 
> > ... Does
> > disabling that change anything?
> 
> It completely removes the hangs.

Problem solved.

> > ... In general, having auto-revert in too
> > many buffers while compiling or using Git is likely to flood Emacs
> > with file-notification events, and is not recommended.
> 
> Well. Magit enables auto-revert by default:

Bad idea, IMO.  At least as long as file notifications are used: those
don't scale well.  Try setting auto-revert-use-notify to the nil
value, and see if you can the best of both worlds.