* Proposal to Improve Performance of `info-apropos` Command in GNU Emacs
@ 2023-10-03 11:32 Eval EXEC
2023-10-03 16:15 ` Eli Zaretskii
0 siblings, 1 reply; 2+ messages in thread
From: Eval EXEC @ 2023-10-03 11:32 UTC (permalink / raw)
To: emacs-devel
Hello,
I would like to propose an idea to enhance the performance of the `info-apropos` command in GNU Emacs. Currently, I have observed that `info-apropos` performs searches sequentially, scanning through each node one by one, resulting in longer execution times. On my system, for instance, executing `M-x info-apropos RET advice-add RET` takes approximately 8 seconds.
To enhance the efficiency of `info-apropos`, I suggest implementing a parallel search mechanism that utilizes multiple threads to search through nodes simultaneously. This approach has the potential to bring significant performance improvements, especially on multi-core CPUs. I believe such optimization could potentially result in a 10x speed boost.
I would greatly appreciate it if you could consider this idea for improving the `info-apropos` command. Please let me know your thoughts and if you require any additional information.
--
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Proposal to Improve Performance of `info-apropos` Command in GNU Emacs
2023-10-03 11:32 Proposal to Improve Performance of `info-apropos` Command in GNU Emacs Eval EXEC
@ 2023-10-03 16:15 ` Eli Zaretskii
0 siblings, 0 replies; 2+ messages in thread
From: Eli Zaretskii @ 2023-10-03 16:15 UTC (permalink / raw)
To: Eval EXEC; +Cc: emacs-devel
> From: Eval EXEC <execvy@gmail.com>
> Date: Tue, 03 Oct 2023 19:32:01 +0800
>
>
> I would like to propose an idea to enhance the performance of the `info-apropos` command in GNU Emacs. Currently, I have observed that `info-apropos` performs searches sequentially, scanning through each node one by one, resulting in longer execution times. On my system, for instance, executing `M-x info-apropos RET advice-add RET` takes approximately 8 seconds.
>
> To enhance the efficiency of `info-apropos`, I suggest implementing a parallel search mechanism that utilizes multiple threads to search through nodes simultaneously. This approach has the potential to bring significant performance improvements, especially on multi-core CPUs. I believe such optimization could potentially result in a 10x speed boost.
Unfortunately, Emacs currently cannot run several threads
concurrently, each one running Lisp code. Only one thread in Emacs
can run Lisp (or its underlying primitives written in C) at any given
time.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-10-03 16:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-03 11:32 Proposal to Improve Performance of `info-apropos` Command in GNU Emacs Eval EXEC
2023-10-03 16:15 ` Eli Zaretskii
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).