From: Stefan Monnier <monnier@IRO.UMontreal.CA>
To: Kenichi Handa <handa@m17n.org>
Cc: rms@gnu.org, 122@emacsbugs.donarmstrong.com,
cyd@stupidchicken.com, lenbok@gmail.com,
bug-submit-list@donarmstrong.com, bug-gnu-emacs@gnu.org
Subject: bug#122: 23.0.60; Slowdown in directory scanning over time.
Date: Wed, 17 Sep 2008 12:02:06 -0400 [thread overview]
Message-ID: <jwvfxnyoj97.fsf-monnier+emacsbugreports@gnu.org> (raw)
In-Reply-To: <E1KfmdP-0003I7-Ix@etlken.m17n.org> (Kenichi Handa's message of "Wed, 17 Sep 2008 11:19:15 +0900")
> The slowness came from the inefficiency of
> generate-new-buffer-name when there exist many buffers of
> the same base name. To generate the 201th buffer, it scans
> the buffer list 200 times (comparing names 200*201/2 = 20100
> times), and the following get-buffer-create scans it again.
Oh, yes, of course. When generate-new-buffer-name is called for
a user-visible buffer, fixing this would be probably too much trouble
for too little benefit. But for internal buffers, whose precise name
doesn't actually matter, we should use a different strategy, where we
immediately start by adding a random suffix to the buffer name, so as to
avoid conflicts.
Stefan
prev parent reply other threads:[~2008-09-17 16:02 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-26 22:29 bug#122: 23.0.60; Slowdown in directory scanning over time Chong Yidong
2008-08-27 3:02 ` Len Trigg
2008-08-31 21:57 ` Len Trigg
2008-09-02 1:09 ` Richard M. Stallman
2008-09-11 3:29 ` Len Trigg
2008-09-11 4:18 ` Chong Yidong
[not found] ` <E1KdpeJ-0004Sb-Oj@fencepost.gnu.org>
2008-09-11 22:35 ` Len Trigg
2008-09-12 0:42 ` Chong Yidong
2008-09-12 4:00 ` Len Trigg
2008-09-14 21:24 ` Len Trigg
2008-09-15 1:04 ` Kenichi Handa
2008-09-15 2:42 ` Len Trigg
2008-09-15 18:26 ` Richard M. Stallman
2008-09-16 1:09 ` Kenichi Handa
2008-09-16 16:18 ` Richard M. Stallman
2008-09-15 18:26 ` Richard M. Stallman
2008-09-16 1:27 ` Kenichi Handa
2008-09-16 13:25 ` Stefan Monnier
2008-09-17 2:19 ` Kenichi Handa
2008-09-17 16:02 ` Stefan Monnier [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwvfxnyoj97.fsf-monnier+emacsbugreports@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=122@emacsbugs.donarmstrong.com \
--cc=bug-gnu-emacs@gnu.org \
--cc=bug-submit-list@donarmstrong.com \
--cc=cyd@stupidchicken.com \
--cc=handa@m17n.org \
--cc=lenbok@gmail.com \
--cc=rms@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.