bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#65250: 30.0.50; "C-h f" is much slower on the master branch


From: Andrea Corallo
Subject: bug#65250: 30.0.50; "C-h f" is much slower on the master branch
Date: Mon, 14 Aug 2023 04:59:18 -0400
User-agent: Gnus/5.13 (Gnus v5.13)

Eli Zaretskii <eliz@gnu.org> writes:

> To reproduce:
>
>   emacs -Q
>   C-h f dictionary-search RET
>
> (almost any other function will do, I think).
>
> This takes a whopping 6.6 sec of CPU on master, vs 2.4 sec on the
> emacs-29 branch.  These are both unoptimized builds, but even so,
> 6.6 seconds of CPU time for looking up a doc string of a function
> is too much, I think.
>
> The patch below fixes the problem in a build without
> native-compilation, but won't help in a build with native-compilation.
> I wonder why comp-function-type-spec is so expensive?

Hi Eli,

I'm failing to reproduce it, this is what I did on latest master:

~~~

CFLAGS='-g3 -O0' make bootstrap  -j16

./src/emacs -Q

M-: (require 'dictionary)

C-h f dictionary-search RET

~~~

The result is pretty much istantaneous on my machine.

I guess I'm doing something different from what you did?

Thanks

  Andrea





reply via email to

[Prev in Thread] Current Thread [Next in Thread]