Optimising TortoiseSVN
December 28, 2006
As noted in other posts, I am currently using Subversion for source code control, with TortoiseSVN as the “GUI” client. Recently I’ve been having big performance problems on my machine, particularly with Windows Explorer. Getting rid of most of the network drives that I’ve added helped quite a bit, and then I turned my attention to TortoiseSVN.
Our SVN repository is located in New York, whilst we are in London, and the network between the two sites is not great. For example, when we moved offices our new network was only 10mbit/s rather than 100mbit/s. Gigabit? Tish and pshaw! Combined with the fact that our project is 436Mb means that SVN can sometimes crawl.
I began digging into the TSVNCache.exe process. TSVNCache determines which icons should be displayed in Windows Explorer, indicating modifications, conflicts, etc. I then read this article about possible optimisations. By switching on the TSVNCacheWindow I could see that tens of thousands of directories were being cached.
The first thing was to remove branches that were no longer being used. Despite having no modifications for several months, they were being repeatedly indexed by TSVNCache.
Next was to specify the directories that I wanted icon overlays for. Into the “Include Paths” I added my C:\dev\trunk and C:\dev\Branches\ directories, with “*” after each of them so as to get recursive info. Into the “Exclude Paths” I added C:\*, thereby excluding everything else.
Performance was now significantly better, but I wasn’t satisfied. The final act was to switch on “Show overlays only in explorer”, which disables the overlays in File Open dialogs and other non-Explorer windows. This was an area where I had had particular problems.
The machine is now lightning-fast, far better than it had become and much more like the dual-core, dual-physical 3.2Ghz Xeon with 2Gb that it’s supposed to be.
My settings are shown here.
Thanks for sharing, my coworker was chastising me about the slowness of TortoiseSVN. I like it, but now it can be even faster.
Thanks for the info. The speedup is significant.
I’m glad to have been of service!
Wow, this was a great tip! The performance of TortoiseSVN was my only gripe and now it seems that the cache tweak has taken that out of the equation!
[...] Like many developers I’ve worked and talked with using subversion, the biggest drawback is the performance hit when using TortoiseSVN’s shell integration. The tip; Optimising TortoiseSVN « Programming Blog has taken that performance issue away for me! My explorer is now much faster than it was and I’m livin’ the happy life! [...]
You are a genius, my Tortoise no longer chugs along like a tortoise
Nice post.
[...] Optimising TortoiseSVN The article is here : Optimising TortoiseSVN [...]
[...] Optimising TortoiseSVN « Programming Blog Good stuff if you’re using TortoiseSVN. (categories: tortoisesvn svn subversion optimization windows ) [...]
Thanks for an intresting tip
[...] Optimising TortoiseSVN « Programming Blog (tags: svn subversion tortoisesvn) [...]
very interesting, but I don’t agree with you
Idetrorce
Beautiful teen girls
http://www.porntubebestmovies3.tk
Great tips. Thanks for sharing.
Since TSVN 1.5 came out there are some minor changes. Here is a nice link to quick videos showing how to use basic TSVN features. Hope it helps you as well.
http://pollvu.blip.tv/
hamy
Excellent site progblog.wordpress.com and I am really pleased to see you have what I am actually looking for here: this .. as it’s taken me literally 2 hours and 56 minutes of searching the web to find you (just kidding!) so I shall be pleased to become a regular visitor