unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* faster tag-search
@ 2011-02-10  0:00 Bob Foss
  0 siblings, 0 replies; only message in thread
From: Bob Foss @ 2011-02-10  0:00 UTC (permalink / raw)
  To: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 415 bytes --]

When my new machine with an SSD didn't seem to perform
tag searches any faster than my old machine, I got to wondering
if the status message was slowing everything down.

I found a significant improvement just by changing the
"Scanning file ..." message.  I believe it was mostly waiting
on video refresh, but I'm not entirely certain.

The diff is against the latest etags.el from the http git interface.

Thanks.

[-- Attachment #2: etags.el.diff --]
[-- Type: text/plain, Size: 738 bytes --]

--- etags.el.d22d03fbe966097b4ed2785d09b54841d1a384ee	2011-02-09 17:40:13.000000000 -0600
+++ etags.el	2011-02-09 17:40:46.000000000 -0600
@@ -1821,17 +1821,17 @@
 	    (setq new (next-file first-time t))
 
 	    ;; If NEW is non-nil, we got a temp buffer,
 	    ;; and NEW is the file name.
 	    (when (or messaged
 		      (and (not first-time)
 			   (> baud-rate search-slow-speed)
 			   (setq messaged t)))
-	      (message "Scanning file %s..." (or new buffer-file-name)))
+	      (message "Scanning file ..."))
 
 	    (setq first-time nil)
 	    (setq original-point (if new nil (point)))
 	    (goto-char (point-min)))
 
 	  ;; If we visited it in a temp buffer, visit it now for real.
 	  (if new
 	      (let ((pos (point)))

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-02-10  0:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-10  0:00 faster tag-search Bob Foss

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).