I regularly use Subversion (version control system) along with the Tortoise SVN shell client. I mostly stick to the command line tools, but its nice to have some shell integration occasionally. Tortoise SVN provides this integration well.
Just recently however I noticed a runaway process called “TSVNCache.exe” using up a lot (in my case one whole processor) of CPU cycles. I saw this happen on both Windows XP and Vista. TSVNCache.exe is the Tortoise SVN process that is responsible for all those icon overlays in Explorer when you view your SVN repository. The process sits there and scans the status of your files and updates them with appropriate icons to indicate state (i.e. modified, added, etc). For some reason it started misbehaving on my machine and grinding everything to a halt (Tortoise SVN version 1.6.1).
The simple workaround is to turn these overlays off. You can do this by going to the Settings menu (right click somewhere in your repository and select TortoiseSVN->Settings), and turning “Status cache” to None (see above).
There are three settings for the overlay cache:
- Default: Uses TSVNCache.exe to process icon overlays
- Shell: Lets the explorer process handle and cache overlays
- None: Turns overlay status cache off
In my case I didn’t care too much for the overlays so I just turned them off. You still get the green tick for checked in folders, but nothing else. Alternatives for improving the performance are to exclude and include paths for Tortoise SVN to monitor (in the same settings dialog again), and/or to show overlays only in Explorer (top checkbox).