Subject: bug#75477: 31.0.50; scratch/igc: crash on the latest commit

From: Ihor Radchenko <[email-masked]>
Date: Fri, 10 Jan 2025 18:35:57 +0000

Pip Cet <[email-masked]> writes:

>>> ./src/emacs -Q --eval '(run-with-timer 1.0 1.0 (lambda () (delete-frame (make-frame))))'
>>> ...

Maybe try with menu bar enabled.
I just casually enabled the menu bar and noticed significant slowdown of
frame creation.

Here is what perf says:

    48.62%  emacs         emacs                                    [.] rootCreateProtectable
    14.08%  emacs         emacs                                    [.] igc_destroy_root_with_start
     3.08%  emacs         emacs                                    [.] fix_lisp_obj
     1.52%  emacs         emacs                                    [.] dflt_scanx
     1.05%  emacs         emacs                                    [.] assq_no_quit
     0.98%  emacs         libc.so.6                                [.] 0x000000000017d947
     0.83%  emacs         emacs                                    [.] set_buffer_internal_2
     0.75%  emacs         emacs                                    [.] plist_get
     0.68%  emacs         emacs                                    [.] get_keymap
     0.61%  emacs         libX11.so.6.4.0                          [.] _XrmInternalStringToQuark
     0.52%  emacs         libc.so.6                                [.] pthread_mutex_lock

-- 
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>