bzr-search slows down "bzr up"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
bzr search plugin |
Incomplete
|
Undecided
|
Unassigned |
Bug Description
Installing bzr-search makes "bzr update" take a very-very-VERY long time due to updating the index. Below are two excerpts from .bzr.log. As you see, the indexing took 500 seconds in the first case, and 1500 seconds in the second, for just a handful of files. My machine is a 3GHz Windows XP box, and I'm running Bazaar 2.0.3 installed with the standalone Windows installer downloaded from the Bazaar Downloads page.
If this is the normal speed of updating the index, then I'd like to arrange for the index updates to be run by a scheduled job some time during the wee hours. Is there any way (except by hacking the sources) to tell the bzr-search not to run the update automatically whenever the branch is changed?
112.547 fetch up to rev {<email address hidden>}
[ 3652] 2010-01-24 22:42:15.299 INFO: M ChangeLog
[ 3652] 2010-01-24 22:42:15.299 INFO: M admin/notes/
[ 3652] 2010-01-24 22:42:15.299 INFO: M configure
[ 3652] 2010-01-24 22:42:15.299 INFO: M configure.in
[ 3652] 2010-01-24 22:42:15.299 INFO: M lisp/ChangeLog
[ 3652] 2010-01-24 22:42:15.299 INFO: M lisp/emacs-
[ 3652] 2010-01-24 22:42:15.299 INFO: M lisp/emacs-
[ 3652] 2010-01-24 22:42:15.299 INFO: M lisp/net/
[ 3652] 2010-01-24 22:42:15.299 INFO: M lisp/progmodes/
[ 3652] 2010-01-24 22:42:15.299 INFO: M lisp/url/ChangeLog
[ 3652] 2010-01-24 22:42:15.299 INFO: M lisp/url/
[ 3652] 2010-01-24 22:42:15.299 INFO: M src/ChangeLog
[ 3652] 2010-01-24 22:42:15.299 INFO: M src/filelock.c
[ 3652] 2010-01-24 22:42:17.049 INFO: All changes applied successfully.
[ 3652] 2010-01-24 22:42:17.220 INFO: Updated to revision 99409.
4154.859 return code 0
20.031 fetch up to rev {<email address hidden>}
[ 228] 2010-01-25 09:45:30.204 INFO: M .bzrignore
[ 228] 2010-01-25 09:45:30.204 INFO: M admin/notes/
[ 228] 2010-01-25 09:45:30.204 INFO: M doc/emacs/ChangeLog
[ 228] 2010-01-25 09:45:30.204 INFO: M doc/emacs/
[ 228] 2010-01-25 09:45:30.204 INFO: M doc/misc/ChangeLog
[ 228] 2010-01-25 09:45:30.204 INFO: M doc/misc/
[ 228] 2010-01-25 09:45:30.204 INFO: M etc/NEWS
[ 228] 2010-01-25 09:45:30.204 INFO: M lisp/ChangeLog
[ 228] 2010-01-25 09:45:30.204 INFO: M lisp/progmodes/
[ 228] 2010-01-25 09:45:30.204 INFO: M lisp/term/xterm.el
[ 228] 2010-01-25 09:45:30.204 INFO: M lisp/vc-bzr.el
[ 228] 2010-01-25 09:45:30.204 INFO: M lisp/vc-git.el
[ 228] 2010-01-25 09:45:30.204 INFO: M src/ChangeLog
[ 228] 2010-01-25 09:45:30.204 INFO: M src/image.c
[ 228] 2010-01-25 09:45:30.204 INFO: M src/keymap.c
[ 228] 2010-01-25 09:45:31.845 INFO: All changes applied successfully.
[ 228] 2010-01-25 09:45:32.002 INFO: Updated to revision 99382.
1774.984 return code 0
Could you get a lsprof file for this?
e.g.
$ bzr --lsprof-file foo.callgrind up
and attach the callgrind file - this will let me see where the
performance hit is coming in.
-Rob