Dave Abrahams | 11 Sep 2011 21:24
Picon
Picon
Favicon
Gravatar

[BUG/FEATURE] dvc-find-file-hook is slow!


Please change the Subject header to a concise bug description or feature request.
In this report, remember to cover the basics, that is, what you 
expected to happen and what in fact did happen.
Please remove these instructions from your message.

Title says all.  It takes me 4 seconds just to do (find-library 'dvc-core)

Emacs  : GNU Emacs 23.3.1 (x86_64-apple-darwin10.8.0, Carbon Version 1.6.0 AppKit 1038.36)
 of 2011-09-04 on pluto.local
Package: Dvc 0

current state:
==============
(setq
 emacs-version "23.3.1"
 dvc-version "0"
 dvc-command-version "git version 1.7.6.1"
 baz-executable "baz"
 tla-apply-patch-mapping nil
 tla-arch-branch 'none
 tla-archive-list-mode-hook nil
 tla-bookmarks-cleanup-dont-prompt nil
 tla-bookmarks-file-name "bookmarks.el"
 tla-bookmarks-mode-hook nil
 tla-branch-list-mode-hook nil
 tla-button-revision-fn 'tla-revlog-any
 tla-category-list-mode-hook nil
 tla-changes-recursive t
 tla-commit-check-log-buffer-functions '(tla-commit-check-empty-headers tla-commit-check-empty-line
(Continue reading)

Stephen Leake | 12 Oct 2011 11:57
Favicon

Re: [BUG/FEATURE] dvc-find-file-hook is slow!

Dave Abrahams <dave <at> boostpro.com> writes:

> Please change the Subject header to a concise bug description or feature request.
> In this report, remember to cover the basics, that is, what you 
> expected to happen and what in fact did happen.
> Please remove these instructions from your message.

Please re-read the last line above.

> It takes me 4 seconds just to do (find-library 'dvc-core)

What back-ends do you have configured in dvc-registered-backends?

dvc-find-file-hook calls dvc-current-active-dvc, which will search thru
backends in dvc-registered-backends until it finds the one for the
current file.

What OS are you on?

Where is dvc-core on the disk?

All of the above can heavily influence speed.

Looking inside dvc-find-file-hook:

Is dvc-current-active-dvc slow, or just dvc-file-has-conflict-p?

--

-- 
-- Stephe
(Continue reading)


Gmane