GNU bug report logs - #31853
27.0.50; binding case-fold-search is slow when there are many buffers

Previous Next

Package: emacs;

Reported by: Aaron Jensen <aaronjensen <at> gmail.com>

Date: Sat, 16 Jun 2018 01:43:01 UTC

Severity: normal

Found in version 27.0.50

Done: Aaron Jensen <aaronjensen <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Aaron Jensen <aaronjensen <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 31853 <at> debbugs.gnu.org
Subject: bug#31853: 27.0.50; binding case-fold-search is slow when there are many buffers
Date: Sat, 16 Jun 2018 00:39:00 -0700
On Fri, Jun 15, 2018 at 11:45 PM Eli Zaretskii <eliz <at> gnu.org> wrote:
> It is related to that bug only if you have a lot of dead buffers.  The
> URL pointed out by Noam includes a patch that would allow you to count
> dead buffers you have; can you do that?

I've got it compiled in now and will report back when it repros as
badly as it did originally.

> In a session that has 291 buffers, I get 2.8 microseconds, whereas in
> fresh "emacs -Q", I get 1.5 microseconds.  This is 3 orders of
> magnitude faster than what you get, and the difference between a large
> session and a new one is much smaller.

I think I missed a zero on my original fresh emacs report. The report
of 1ms per for a long running emacs was correct though.
These should be accurate:
On emacs -Q I get 2 microseconds.
On a newly launched emacs w/ my config I get 3 microseconds with 9
buffers and 1 killed buffer.
On an emacs I've been running for a bit I get 40 microseconds with 71
buffers and 237 killed buffers.




This bug report was last modified 6 years and 330 days ago.

Previous Next


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