GNU bug report logs - #73766
30.0.91; (documentation 'pcase) can take several seconds

Previous Next

Package: emacs;

Reported by: Yikai Zhao <yikai <at> z1k.dev>

Date: Sat, 12 Oct 2024 08:03:01 UTC

Severity: normal

Found in version 30.0.91

Done: Stefan Monnier <monnier <at> iro.umontreal.ca>

Bug is archived. No further changes may be made.

Full log


Message #14 received at 73766 <at> debbugs.gnu.org (full text, mbox):

From: Yikai Zhao <yikai <at> z1k.dev>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 73766 <at> debbugs.gnu.org,
 João Távora <joaotavora <at> gmail.com>
Subject: Re: bug#73766: 30.0.91;
 (documentation 'pcase) can take several seconds
Date: Sun, 13 Oct 2024 22:10:24 +0800
On Sun, Oct 13, 2024 at 12:39 AM Stefan Monnier
<monnier <at> iro.umontreal.ca> wrote:
>
> >> Apparently, it would iterate over all defined pcase macros (N), and for
> >> each of those, `help-fns-short-filename` would iterate over all items in
> >> `load-path` (M). Total time complexity is N*M.
> > Adding Stefan and João, in case they have some comments or
> > suggestions.
>
> How 'bout a patch like the one below?

Hello,

I tried this patch and can confirm it improves the performance.
Here's the result of (benchmark-run (documentation 'pcase)):

- master: 4s
- master with this patch: 0.12s

However it's still slower than last stable version:
- 29.4 version: 0.02s



Yikai




This bug report was last modified 299 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.