I have heard that you should keep the registry clean on Windows. Is this actually important or is it just myth?

link|improve this question

67% accept rate
Is there a way to "defragment" the registry? Rewrite to remove unused space? – Agnel Kurian Jun 17 '10 at 9:40
feedback

10 Answers

up vote 40 down vote accepted

As I understand it, cleaning the registry is not going to really do much for your computer performance if anything. The registry contains thousands of keys and cleaning out a few dead ones won't really make much difference.

This forum post contains some sources that seem to confirm registry cleaning as a mythical performance enhancer.

It will have no effect on system speed. There is an excellent chance it will make your system less reliable.

link|improve this answer
+1 for the link to Mark's quote I regularly use cleaning tools, but I am more oriented to clean temporary files and program caches – Drake Jul 15 '09 at 14:17
I'd upvote this answer if I had any more votes left today. :) – Marc Reside Jul 15 '09 at 14:19
I agree for the most part, but the real answer is "it depends" I haven't needed to clean my registry for several years now – David Hayes Jul 15 '09 at 14:58
Any way to "defragment" the registry then? – Agnel Kurian Jun 17 '10 at 8:39
1  
@Agnel: With Mark Russinovich's PageDefrag. – Joey Nov 26 '10 at 11:26
show 2 more comments
feedback

The registry is a huge database optimized for speed. It doesn't matter if some game left its config options in there. Other programs aren't going to care and Windows can handle the memory usage just fine by paging (i.e. only loading what's needed) and other techniques.

The only time a registry cleaner could be useful is if a program was not uninstalled properly; in this case you might have some specific problem such as a broken file association. But if you are not seeing problems and are just looking for speed you are probably wasting your time. Not only that, but deleting stuff from the registry can break things in subtle or hard-to-fix ways. Hopefully a good registry cleaner backs up all its changes so that you can easily restore your old registry... assuming your computer boots properly after the cleaning.

If your windows system has lots of strange bugs that are due to registry problems you might be better served by re-installing. Before XP I used to re-install Windows every 6 months. Now I almost never have to do it. I would avoid registry cleaners.

link|improve this answer
+1 for the failed installation point. That seems a valid reason to use some kind of tool to clean up. – Jeff Yates Jul 15 '09 at 14:22
1  
+1 for "Before XP..." The only XP crashes I've seen have been my own fault caused by foolishly testing a buggy driver I was writing on my development machine instead of insisting on having a second disposable machine for the purpose. – RBerteig Jul 28 '09 at 22:55
Do you have a citation that the registry is optimized for speed? This certainly does not appear to be the case. The registry files can become fragmented and in any case, it seems to be a fairly simple format, not optimised at all for fast lookups. I have no idea about how the data is stored in memory, however. Perhaps registry retrievals are O(1) rather than O(log n) or O(n), I just can't find any reference to support this. – ChrisInEdmonton Jul 30 '09 at 17:07
feedback

I checked the Wikipedia page on registry cleaners.
Looking at Jeff's answer, maybe someone needs to update that with criticisms.

I have used CCleaner often, and in fact, also been suggested registry defragmentation tools.
Mark Russinovich, who I trust a lot with my Windows machines, also has a PageDefrag tool that works on registry hive defragmentation.

A reference to another tool by Mark called RegDevNull that helps to cleanup registry keys with embedded NULL characters.

I also often use **RevoUninstaer to cleanup after some uninstalls.
The warning from Mark and others on the risk involved with cleanup is taken seriously.

link|improve this answer
1  
+1 for PageDefrag, although it gets a much bigger bang from defragging the page file than defragging the registry. – Jeff Leonard Jul 15 '09 at 18:04
@Jeff, Very much so!! Page Files are easier fruit when allowed to grow (vary in size). Its always better to fix them at a suitable size once and for all. – nik Jul 15 '09 at 18:11
Also, I would guess that the bang from defragging the hives is much bigger than from cleaning out dead entries. I don't have evidence to cite, though. – RBerteig Jul 28 '09 at 22:56
feedback

Not only is cleaning up the registry of minimal impact to your computer's performance, there is also a high chance of doing serious damage when attempting to do so!

I recommend NOT doing this unless you have a valid reason to do so.

link|improve this answer
feedback

there are few good things that a registry cleaner can do. One is removing file association to uninstalled programs for example.

But I haven't heard of any benchmark that demonstrates that cleaning your registry will increase the overall performance of your system.

link|improve this answer
feedback

I'm probably not a typical user, but I've never done so and never seen a need to do so. However, I do know that pretty much every program you've ever installed leaves some kind of junk lying around in your registry and/or hard drive, so it's still possible that such utilities might have a purpose.

link|improve this answer
feedback

CCleaner can find and remove hundred of invalid registry keys. If anything, I think cleaning the registry of invalid references can be good if you want to avoid having conflicts between software that is installed on the machine.

link|improve this answer
feedback

I agree, cleaning the registry risk vs reward is low, however tools to Registry defrag / compact the registry will increase performance. I use Registry Mechanic to just defrag and compact the Registry, not the registry cleaner options.

link|improve this answer
feedback

Well, cleaning the registry from entries virii, trojans and spyware leave there is certainly not a bad thing to do, even if regular cleaning from stale entries doesn't give much benefit.

link|improve this answer
feedback

I believe it's better (effort and time wise) to just reinstall the whole system every 6 months or so, than spend every once in a while cleaning registry, "keeping the system clear" with anti virus, anti trojan, anti spyware, anti ... whatever you have left.

And the whole reinstall doesn't take more than 4-5 hours, including installing all software and customizing preferences in it.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.