From: Ben Wing <ben(a)666.com>
Date: Wed, 13 Jun 2001 17:33:33 -0700
Jeff Mincy wrote:
From: Ben Wing <ben(a)666.com>
Date: Tue, 12 Jun 2001 21:56:50 -0700
Jeff Mincy wrote:
> So, it's better at finding the right tag, but lots slower.
are you sure this isn't a font-lock problem? i use 21.5 for
development and i
have error-checking turned on and no optimization -- and i still see <1 second
for find-tag. this is on a pentium III 700mhz.
is this 10-15 seconds only the first find-tag, or all of them?
Well, no, I'm not sure, maybe it is both font-lock and tag.
find-tag is definitly slower, but now it takes more like 4-5 seconds.
I think the rest of the time was fontifying. I'm on a 450mhz.
could you try starting up `xemacs -vanilla' and then running find-tag? [you
might have to manually run some lines in your init file that set up the tag
vars.]
also, in your normal setup, try find-tag multiple times on the same tag. then
try on multiple tags into the same file. you should definitely see <1 second on
450mhz unless you're seriously memory-strapped or working over a slow network.
Ok.
I did
alias xemacs4="C:/PROGRA~1/XEmacs/XEmacs-21.4.3/i586-pc-win32/xemacs.exe"
mv ~/.emacs ~/.emacs.foo
mv ~/.xemacs ~/.xemacs.foo
mv site-packages site-packages.foo - autoloads are still being run
from cygwin bash: xemacs4 -vanilla
in xemacs, I evaled the following
(progn
(defun tagdir (tags) (concat "c:/home/jmincy/tag/" tags))
(setq-default tags-build-completion-table nil)
(setq-default tags-auto-read-changed-tag-files t)
(setq-default make-tags-files-invisible t)
(setq-default tag-table-alist
(delete-if-not
#'(lambda (x) (file-exists-p (cdr x)))
`(("\\.e\\(l\\|macs\\)\\'" . ,(tagdir "XEMACS_TAGS"))
("\\.e\\(l\\|macs\\)\\'" . ,(tagdir "XEMACS_CTAGS"))
("\\.[RS]\\'" . ,(tagdir "S_TAGS"))
("\\.\\(cc?\\|hh?\\)\\'" . ,(tagdir "CTAGS"))
("xemacs-[0-9.]+/src/[^.]\\.[ch]\\'" . ,(tagdir
"XEMACS_CTAGS"))
("\\.tcl\\'" . ,(tagdir "TCL_TAGS")))))
)
Then I do M-. find-tag. Which consistently takes 4-5 seconds.
Maybe it is a little faster if etags.el is already loaded, but not much.
The file wasn't fontified, so font-lock doesn't seem to be involved.
Then I tried M-. ess-listing-minor-mode. This was instant.
ess-listing-minor-mode is on line 198 of XEMACS_TAGS
find-tag is on line 61356 (of 65718) of XEMACS_TAGS.
So I went to line 20000 of XEMACS_TAGS and M-. that symbol
(bookmark-bmenu-delete-backwards). That took about 2 seconds.
Sounds linear in # tags, with a much higher multiplier.
Off hand, I'd say that my system can search through 10000 tags per
second in 21.4.3, which seems 5-10 times slower than 21.1.13.
-jeff