From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs,gmane.emacs.pretest.bugs Subject: bug#2445: 23.0.90; file name completion GCs a lot Date: Wed, 25 Feb 2009 11:35:44 -0500 Message-ID: References: Reply-To: Stefan Monnier , 2445@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1235581883 340 80.91.229.12 (25 Feb 2009 17:11:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 25 Feb 2009 17:11:23 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org, 2445@emacsbugs.donarmstrong.com To: rms@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Feb 25 18:12:38 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LcNIz-00078I-LS for geb-bug-gnu-emacs@m.gmane.org; Wed, 25 Feb 2009 18:12:22 +0100 Original-Received: from localhost ([127.0.0.1]:58686 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LcNHe-0000lL-4t for geb-bug-gnu-emacs@m.gmane.org; Wed, 25 Feb 2009 12:10:58 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LcNAg-0000b9-Q8 for bug-gnu-emacs@gnu.org; Wed, 25 Feb 2009 12:03:46 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LcNAf-0000Z2-DH for bug-gnu-emacs@gnu.org; Wed, 25 Feb 2009 12:03:45 -0500 Original-Received: from [199.232.76.173] (port=42957 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LcNAd-0000Y5-Tu for bug-gnu-emacs@gnu.org; Wed, 25 Feb 2009 12:03:43 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:38206) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LcNAc-0004Fo-Ia for bug-gnu-emacs@gnu.org; Wed, 25 Feb 2009 12:03:43 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n1PH3bJ7006010; Wed, 25 Feb 2009 09:03:39 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n1PGj6cv000329; Wed, 25 Feb 2009 08:45:06 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Stefan Monnier Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Wed, 25 Feb 2009 16:45:06 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 2445 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 2445-submit@emacsbugs.donarmstrong.com id=B2445.123557974930675 (code B ref 2445); Wed, 25 Feb 2009 16:45:06 +0000 Original-Received: (at 2445) by emacsbugs.donarmstrong.com; 25 Feb 2009 16:35:49 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from chene.dit.umontreal.ca (chene.dit.umontreal.ca [132.204.246.20]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n1PGZkp9030657 for <2445@emacsbugs.donarmstrong.com>; Wed, 25 Feb 2009 08:35:47 -0800 Original-Received: from alfajor.home (vpn-132-204-232-24.acd.umontreal.ca [132.204.232.24]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id n1PGZith025288; Wed, 25 Feb 2009 11:35:45 -0500 Original-Received: by alfajor.home (Postfix, from userid 20848) id C852AA2C19; Wed, 25 Feb 2009 11:35:44 -0500 (EST) In-Reply-To: (Richard M. Stallman's message of "Mon, 23 Feb 2009 10:02:46 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.90 (gnu/linux) X-NAI-Spam-Level: X-NAI-Spam-Score: 0.5 X-NAI-Spam-Rules: 2 Rules triggered PHONE_800=0.5, RV3218=0 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Wed, 25 Feb 2009 12:03:45 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:25694 gmane.emacs.pretest.bugs:23987 Archived-At: > 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