Is it worth cleaning the registry?

39

9

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

Jeff Yates

Posted 2009-07-15T14:08:59.647

Reputation: 1 518

Is there a way to "defragment" the registry? Rewrite to remove unused space? – Agnel Kurian – 2010-06-17T09:40:25.440

2Well, it's obviously worth it to the companies that sell such cleaning tools for money. – a CVn – 2013-09-26T14:05:59.520

Answers

59

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.

Jeff Yates

Posted 2009-07-15T14:08:59.647

Reputation: 1 518

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 – 2009-07-15T14:58:51.947

@Keltari That is the killer argument. – HerpDerpington – 2015-08-18T20:22:46.600

Any way to "defragment" the registry then? – Agnel Kurian – 2010-06-17T08:39:39.100

@Keltari Do you have the source of the microsoft stating that? – Ivan Viktorovic – 2016-12-29T22:18:14.897

3@Agnel: With Mark Russinovich's PageDefrag. – Joey – 2010-11-26T11:26:35.363

Wow, you found an answer only two minutes after posting the question. You gave up looking and asked too quickly. ;-) – Synetech – 2011-11-06T19:34:58.957

No, I raised this as a seed question for the site and continued my own research. The question is clearly useful to others so I shared it. – Jeff Yates – 2011-11-07T14:59:46.837

3Microsoft has even stated the registry cleaning tools are not useful. I believe them, because if it was useful, they would have made their own tool. – Keltari – 2012-09-14T17:42:43.363

+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 – 2009-07-15T14:17:12.897

1I'd upvote this answer if I had any more votes left today. :) – Marc Reside – 2009-07-15T14:19:37.857

18

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.

Mr. Shiny and New 安宇

Posted 2009-07-15T14:08:59.647

Reputation: 1 112

6+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 – 2009-07-28T22:55:20.337

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 – 2009-07-30T17:07:06.683

I'd argue that a better way to deal with a failed installation is to re-install it correctly and then uninstall it. That way you won't be deleting random keys which end up breaking your computer. – Richard – 2012-09-14T18:07:47.840

@Richard: I was referring to a failed uninstallation, where there is left-over stuff in the registry in places where it affects other programs. Such as file associations, COM object registries, etc. A registry cleaner can find such orphan links and delete them. It's probably the only valid use-case for registry cleaners I can think of. And in the last 10 years I'm not sure I can recall ever needing to fix such a failed uninstall. – Mr. Shiny and New 安宇 – 2012-09-15T21:12:25.003

1+1 for the failed installation point. That seems a valid reason to use some kind of tool to clean up. – Jeff Yates – 2009-07-15T14:22:07.010

5

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 RegDelNull that helps to cleanup registry keys with embedded NULL characters.

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

nik

Posted 2009-07-15T14:08:59.647

Reputation: 50 788

I know the answer is old, but it seems that Mark or Sysinternals doesn't have any more support for PageDefrag. It isn't even listed on the downloadindex at https://technet.microsoft.com/en-us/sysinternals/bb545027 .

– Machado – 2015-03-25T14:00:51.803

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 – 2009-07-28T22:56:51.223

2+1 for PageDefrag, although it gets a much bigger bang from defragging the page file than defragging the registry. – Jeff Leonard – 2009-07-15T18:04:13.403

@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 – 2009-07-15T18:11:31.547

3

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.

Drake

Posted 2009-07-15T14:08:59.647

Reputation: 5 104

2

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.

Marc Reside

Posted 2009-07-15T14:08:59.647

Reputation: 1 484

1

I've used PC HealthBoost with success on a few slow PCs. I chose it because it does work as advertised and is in good standing with Microsoft. Microsoft, itself, also used to make a registry cleaner called regclean.exe.

Basically, uninstallers sometimes are poorly written, and that sometimes creates errors in your operating system that show popup errors or blue screens. Also, have you ever right-clicked the desktop and found it takes a long time because the context menu has extra menu options from a product (like Norton Antivirus) and one of those menu items is still there but the product has since been uninstalled? That delay is aggravating, and contributes to the slowness of the PC. Also, when a PC boots, it is looking for file paths mapped to keys where those files were deleted by an uninstaller but not the key.

Some may say it's only a marginal slowness, but I've seen it be a significant factor with nothing more than 4 poorly written uninstallers, where some of these programs may have created dozens of registry keys.

A word of caution, however -- not all registry cleaners are alike. You want one that can backup your registry first before making changes, and one that doesn't delete legitimate keys. Some of these companies are cagey, but I've been very pleased with PC HealthBoost.

Volomike

Posted 2009-07-15T14:08:59.647

Reputation: 691

0

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.

GalacticCowboy

Posted 2009-07-15T14:08:59.647

Reputation: 588

0

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.

AlbertoPL

Posted 2009-07-15T14:08:59.647

Reputation: 500

0

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.

Jason

Posted 2009-07-15T14:08:59.647

Reputation:

0

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.

Vinko Vrsalovic

Posted 2009-07-15T14:08:59.647

Reputation: 2 276

0

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.

Rook

Posted 2009-07-15T14:08:59.647

Reputation: 21 622

I don't agree with this....I have a serious number of applications and programs and 4-5 hours would not cut it. Try something on the order of 1-2 months to get my system back to what I wanted after the last Windows 7 wipeout. – mdpc – 2013-02-11T18:27:21.680

0

For me is seemed to work really well. But be careful a lot of freeware registry cleaners will do more harm than good by loading your pc with malware.

Hermes Trismegistus

Posted 2009-07-15T14:08:59.647

Reputation: 11