From: Stefan Monnier <monnier@IRO.UMontreal.CA>
To: rms@gnu.org
Cc: emacs-pretest-bug@gnu.org, 2445@emacsbugs.donarmstrong.com
Subject: bug#2445: 23.0.90; file name completion GCs a lot
Date: Wed, 25 Feb 2009 11:35:44 -0500 [thread overview]
Message-ID: <jwvab8aeatu.fsf-monnier+emacsbugreports@gnu.org> (raw)
In-Reply-To: <E1LbcKU-0006gR-TF@fencepost.gnu.org> (Richard M. Stallman's message of "Mon, 23 Feb 2009 10:02:46 -0500")
> When I type C-x C-f xmail/foox TAB, where xmail contains 800 files
> and none of them starts with foox, it takes a few seconds (including
> 3 GCs) before telling me it can't be found.
> Here's output from xbacktrace:
> "file-name-completion" (0x7fbe23e4)
> "completion--file-name-table" (0x7fbe26c4)
> "complete-with-action" (0x7fbe29a4)
> 0x87978c PVEC_COMPILED
> "byte-code" (0x7fbe2f14)
> "completion--some" (0x7fbe33b4)
> 0x8797dc PVEC_COMPILED
> "apply" (0x7fbe3710)
> "read-file-name-internal" (0x7fbe38f4)
> "try-completion" (0x7fbe3a74)
> "completion-pcm--find-all-completions" (0x7fbe3f2c)
> "completion-pcm-try-completion" (0x7fbe4214)
> 0x879d04 PVEC_COMPILED
> "byte-code" (0x7fbe4784)
> "completion--some" (0x7fbe4c24)
> "completion-try-completion" (0x7fbe4f04)
> "completion--do-completion" (0x7fbe51f4)
> "minibuffer-complete" (0x7fbe550c)
> "call-interactively" (0x7fbe5764)
> "completing-read" (0x7fbe5ebc)
> "read-file-name" (0x7fbe61ac)
> "find-file-read-args" (0x7fbe648c)
> "byte-code" (0x7fbe671c)
> "call-interactively" (0x7fbe69c4)
> I think that is because of the partial completion feature
> that is now enabled by default and was not before.
It may be, indeed. But there's no good reason why it should be much
slower in such a circumstance. A factor of 2 slowdown should be
expected, but not much more than that since the "xmail/foox" pattern
doesn't offer much opportunity for partial completion.
So it sounds more like an implementation inefficiency somewhere.
Stefan
next prev parent reply other threads:[~2009-02-25 16:35 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-23 15:02 bug#2445: 23.0.90; file name completion GCs a lot Richard M Stallman
2009-02-25 16:35 ` Stefan Monnier [this message]
2009-02-26 19:25 ` Richard M Stallman
2009-03-17 18:03 ` Stefan Monnier
2009-03-19 19:37 ` Richard M Stallman
2009-03-19 20:43 ` Stefan Monnier
2009-03-20 22:52 ` Richard M Stallman
2009-03-21 1:41 ` Stefan Monnier
2009-03-18 13:40 ` Stefan Monnier
2009-03-18 22:18 ` Richard M Stallman
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=jwvab8aeatu.fsf-monnier+emacsbugreports@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=2445@emacsbugs.donarmstrong.com \
--cc=emacs-pretest-bug@gnu.org \
--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.