From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.devel Subject: Re: Hideously slow VC status queries fixed Date: Wed, 26 Dec 2007 18:41:05 -0800 Message-ID: <200712270241.lBR2fAjv018571@oogie-boogie.ics.uci.edu> References: <20071227001113.3EDFE830B6E@snark.thyrsus.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1198723330 24542 80.91.229.12 (27 Dec 2007 02:42:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 27 Dec 2007 02:42:10 +0000 (UTC) Cc: emacs-devel@gnu.org To: "Eric S. Raymond" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Dec 27 03:42:23 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1J7ihS-0003Yk-RL for ged-emacs-devel@m.gmane.org; Thu, 27 Dec 2007 03:42:23 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J7ih7-0003oo-Ss for ged-emacs-devel@m.gmane.org; Wed, 26 Dec 2007 21:42:01 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1J7ih3-0003m6-Sj for emacs-devel@gnu.org; Wed, 26 Dec 2007 21:41:58 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1J7ih1-0003he-Fk for emacs-devel@gnu.org; Wed, 26 Dec 2007 21:41:57 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J7ih1-0003hC-Be for emacs-devel@gnu.org; Wed, 26 Dec 2007 21:41:55 -0500 Original-Received: from oogie-boogie.ics.uci.edu ([128.195.1.41]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1J7ih0-0007Y1-Ne for emacs-devel@gnu.org; Wed, 26 Dec 2007 21:41:55 -0500 Original-Received: from mothra.ics.uci.edu (mothra.ics.uci.edu [128.195.6.93]) by oogie-boogie.ics.uci.edu (8.13.6/8.13.6) with ESMTP id lBR2fAjv018571; Wed, 26 Dec 2007 18:41:10 -0800 (PST) In-Reply-To: <20071227001113.3EDFE830B6E@snark.thyrsus.com> (Eric S. Raymond's message of "Wed, 26 Dec 2007 19:11:13 -0500 (EST)") Original-Lines: 30 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (score=-1.286, required 5, autolearn=disabled, ALL_TRUSTED -1.44, TW_BZ 0.08, TW_SV 0.08) X-ICS-MailScanner-From: dann@mothra.ics.uci.edu X-detected-kernel: by monty-python.gnu.org: Solaris 9 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:85496 Archived-At: "Eric S. Raymond" writes: > It gives me great pleasure to be able to announce that I have found, > and fixed, the bug that made C-x v d so godawful much slower than the > underlying commands. Thank you so much for doing this! There's still one source of inefficiency: files that are not vc-registered at all. For example object files in a build tree. Try this: cd emacs/lisp/term (because it is a small subdir) for FF in `seq 1 1000`; do touch obj${FF}.o; done (just create 1000 .o files) emacs -q M-x elp-instrument-package RET vc RET C-x v d emacs/lisp/term RET M-x elp-results RET That will show 1000 calls to vc-bzr-registered, vc-git-registered, vc-arch-registered, vc-svn-registered etc etc. Another issue with vc-dired is that it does not show files that are not registered and not ignored. So one cannot select the non-registered files and register them in one shot...