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

From: Ihor Radchenko <[email-masked]>
Date: Sun, 23 Feb 2025 15:52:20 +0000

Hi,

After running Emacs for a few days (no crashes!), I noticed significant
hangs when running compilation.

The perf data is silent, but Emacs becomes unresponsive right at the
beginning of compilations and sometimes in the middle, as the
compilation buffer is filled.

Any suggestions, ideas?

     1.46%  emacs            ld-linux-x86-64.so.2                                                   [.] do_lookup_x
     1.11%  emacs            emacs                                                                  [.] compact_buffer
     1.11%  emacs            libc.so.6                                                              [.] pthread_mutex_lock
     1.09%  emacs            libc.so.6                                                              [.] pthread_mutex_unlock
     1.08%  emacs            emacs                                                                  [.] ChunkOfAddr
     0.95%  emacs            [unknown]                                                              [k] 0xffffffff90e001c8
     0.84%  emacs            emacs                                                                  [.] fix_lisp_obj
     0.76%  emacs            emacs                                                                  [.] ChainDeferral
     0.67%  emacs            emacs                                                                  [.] igc_on_idle
     0.66%  emacs            emacs-30-vcs                                                           [.] 0x00000000001bdc09
     0.59%  emacs            emacs                                                                  [.] GenDescNewSize
     0.58%  emacs            emacs                                                                  [.] re_match_2_internal
     0.53%  emacs            emacs                                                                  [.] _mps_fix2
     0.53%  emacs            emacs-30-vcs                                                           [.] 0x00000000001ed929
     0.47%  emacs            emacs                                                                  [.] ArenaStep
     0.44%  emacs            [vdso]                                                                 [.] __vdso_clock_gettime
     0.40%  emacs            emacs                                                                  [.] ShieldFlush
     0.39%  emacs            emacs                                                                  [.] shieldQueue
     0.38%  emacs            emacs-30-vcs                                                           [.] 0x00000000001c907f
     0.37%  emacs            emacs-30-vcs                                                           [.] re_search_2
     0.37%  emacs            emacs                                                                  [.] QuickSort
     0.37%  emacs            emacs                                                                  [.] amcSegFix
     0.35%  emacs            emacs-30-vcs                                                           [.] 0x00000000001bdeda
     0.35%  emacs            emacs                                                                  [.] dflt_scanx
     0.32%  emacs            emacs                                                                  [.] PolicyStartTrace
     0.30%  emacs            [unknown]                                                              [k] 0xffffffff90e018a8
     0.29%  cc1plus          cc1plus                                                                [.] push_to_top_level
     0.28%  emacs            macroexp-2c3e1495-60fafb77.eln                                         [.] F6d6163726f6578702d2d657870616e642d616c6c_macroexp__expand_all_0

In GNU Emacs 31.0.50 (build 2, x86_64-pc-linux-gnu, GTK+ Version
 3.24.42, cairo version 1.18.2) of 2025-02-15 built on localhost
Repository revision: 67e602105774a31508239a6d2a6a05a4d4c5d363
Repository branch: feature/igc
Windowing system distributor 'The X.Org Foundation', version 11.0.12101014
System Description: Gentoo Linux

Configured using:
 'configure --with-mps=yes --with-native-compilation 'CFLAGS=-g3
 -I/opt/mps/include -L/opt/mps/lib'
 JAVAC=/etc/java-config-2/current-system-vm/bin/javac
 PKG_CONFIG_PATH=/usr/share/guile-data/3.0/pkgconfig'

-- 
Ihor Radchenko // yantar92,
Org mode maintainer,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>