GNU bug report logs -
#31853
27.0.50; binding case-fold-search is slow when there are many buffers
Previous Next
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
Message #14 received at 31853 <at> debbugs.gnu.org (full text, mbox):
> From: Aaron Jensen <aaronjensen <at> gmail.com>
> Date: Fri, 15 Jun 2018 18:42:09 -0700
>
> This is related to or maybe is bug#18522, which supposedly was fixed,
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?
> but it is unclear from the thread if just the usage of case-fold-search was
> fixed or if the slow binding was meant to have been fixed.
None of the above, AFAIU. Gnus was fixed to not hit this problem.
> (benchmark 1 '(let ((case-fold-search t)) t))
>
> is roughly 1ms on a longer running emacs and .02ms on a fresh emacs.
>
> My (length (buffer-list)) is 91 on the longer running emacs and 23 on
> the fresh.
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.
IOW, there's some factor here that is not just the number of buffers
you have, I think.
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.