[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Long delay after M-x commandname
From: |
Michael Heerdegen |
Subject: |
Re: Long delay after M-x commandname |
Date: |
Tue, 12 Oct 2021 03:59:28 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
Eduardo Ochs <eduardoochs@gmail.com> writes:
> This takes 10 seconds:
>
> (execute-extended-command--shorter "find-eev-quick-intro"
> "find-eev-qui")
Wow - takes 36 seconds for me. In emacs -Q still 2 or 3 seconds. I
think a bug report would definitely not be wrong.
Here is the result of running the profiler (using my current session).
I don't see anything obvious - no sit-for or so. Maybe it depends on
completion-styles involved? Let's try ... eh, no, with the default
styles enabled I still see 34 seconds. Maybe this just scales with the
amount of loaded packages and "find-eev-quick-intro" is just very hard
to shorten, dunno. Anyway, here is the profiler result:
Elapsed time: 35.878s (including 1.239s in 1 GCs and excluding 0.479s of idle
time)
Conses: 511713
Vector-Cells: 42
Strings: 32135
String-Chars: 100
Symbols: 1.10411e+06
Floats: 606
Intervals: 138814
34239 100% - ...
33925 99% - read-from-minibuffer
33925 99% - command-execute
33925 99% - call-interactively
33925 99% - funcall-interactively
33886 98% - my-profiler-profile-next-command
33886 98% - my-measuring-idle-time
33886 98% - #<compiled 0x2ec4e28c32523d9>
33886 98% - eval
33886 98% - benchmark-run
33886 98% - benchmark-call
33886 98% - #<lambda 0xfdda4d053>
33886 98% - progn
33886 98% - funcall-interactively
33886 98% - my-pp-eval-expression
33800 98% - pp-eval-expression
33800 98% - eval
33800 98% - progn
33800 98% - progn
33800 98% - execute-extended-command--shorter
33760 98% - completion-try-completion
33760 98% - completion--nth-completion
33756 98% - completion--some
33756 98% - #<compiled -0xd2c16e5a3854222>
19670 57% - completion-pcm-try-completion
19566 57% -
completion-pcm--find-all-completions
19562 57% - completion-pcm--all-completions
4 0% completion-pcm--pattern->regex
104 0% - completion-pcm--merge-try
72 0% completion-pcm--merge-completions
10354 30% - completion-substring-try-completion
10354 30% -
completion-substring--all-completions
10350 30% completion-pcm--all-completions
3732 10% completion-emacs22-try-completion
4 0% completion--styles
8 0% - execute-extended-command--shorter-1
[...]
Michael