GNU bug report logs - #45379
28.0.50; Degraded Performance of describe-buffer-bindings

Previous Next

Package: emacs;

Reported by: styang <at> fastmail.com

Date: Wed, 23 Dec 2020 06:03:01 UTC

Severity: normal

Tags: confirmed, fixed, patch

Merged with 47494, 47565, 48812

Found in version 28.0.50

Fixed in version 28.1

Done: Stefan Kangas <stefan <at> marxist.se>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Kenichi Handa <handa <at> gnu.org>
Cc: stephen.berman <at> gmx.net, stefan <at> marxist.se, juri <at> linkov.net, handa <at> gnu.org, styang <at> fastmail.com, monnier <at> iro.umontreal.ca, 45379 <at> debbugs.gnu.org
Subject: bug#45379: 28.0.50; Degraded Performance of describe-buffer-bindings
Date: Tue, 30 Mar 2021 10:01:19 +0300
Ping!  Kenichi, could you please help us with this issue?

> Date: Sun, 07 Mar 2021 08:15:10 +0200
> From: Eli Zaretskii <eliz <at> gnu.org>
> Cc: stephen.berman <at> gmx.net, 45379 <at> debbugs.gnu.org, stefan <at> marxist.se,
>  juri <at> linkov.net, handa <at> gnu.org, monnier <at> iro.umontreal.ca, styang <at> fastmail.com
> 
> > From: handa <handa <at> gnu.org>
> > Cc: stefan <at> marxist.se, styang <at> fastmail.com, juri <at> linkov.net, rudalics <at> gmx.at,
> > 	45379 <at> debbugs.gnu.org, monnier <at> iro.umontreal.ca,
> > 	stephen.berman <at> gmx.net, handa <at> gnu.org
> > Date: Sun, 07 Mar 2021 10:42:39 +0900
> > 
> > In article <83v9a4wve3.fsf <at> gnu.org>, Eli Zaretskii <eliz <at> gnu.org> writes:
> > 
> > > > From: Stefan Kangas <stefan <at> marxist.se>
> > > > Date: Fri, 5 Mar 2021 20:44:33 -0800
> > > > Cc: Juri Linkov <juri <at> linkov.net>, martin rudalics <rudalics <at> gmx.at>, Eli Zaretskii <eliz <at> gnu.org>, 
> > > > 	45379 <at> debbugs.gnu.org, Stefan Monnier <monnier <at> iro.umontreal.ca>, 
> > > > 	Stephen Berman <stephen.berman <at> gmx.net>
> > > > 
> > > > It turns out that we were doing unnecessary looping due to the above
> > > > mentioned commit.
> > 
> > Could you show me what is "the above mentioned commit"?
> 
> This one, I guess:
> 
> > commit a6490343366f2b2331a91dcb693effb3a9dd78f5
> > Author:     Stefan Kangas <stefan <at> marxist.se>
> > AuthorDate: Fri Nov 13 15:28:29 2020 +0100
> > Commit:     Stefan Kangas <stefan <at> marxist.se>
> > CommitDate: Sun Nov 22 02:45:03 2020 +0100
> > 
> >     Don't show key ranges if shadowed by different commands
> > 
> >     * src/keymap.c (describe_vector): Make sure found consecutive keys
> >     are either not shadowed or, if they are, that they are shadowed by
> >     the same command.  (Bug#9293)
> >     * test/src/keymap-tests.el
> >     (help--describe-vector/bug-9293-one-shadowed-in-range): New test.
> 
> > > >  While working on this, I also found that we can get
> > > > rid of an unnecessary call to char_table_ref_and_range, which should
> > > > make this function run even faster.
> > 
> > Is the patch for the above improvement the one included in the file
> > 0001-Fix-describe-buffer-bindings-performance-regression.patch?
> 
> Yes, it is.
> 
> > > > I'm also copying in Kenichi Handa, who was the last to touch this code.
> > > > Handa-san, please let us know if you have any comments on this patch.
> > > > Thanks in advance.
> > 
> > > AFAICT, you didn't CC Kenichi; I have now added him to the discussion.
> > 
> > It was more than 10 years ago that I last read keymap.c, and since then,
> > the code has been changed a lot.  It will take some time to understand
> > the latest code.
> 
> Thanks in advance.




This bug report was last modified 3 years and 242 days ago.

Previous Next


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