The Curious Demonization of the Windows Registry

The Windows Registry is meant to serve as a shared storage location for system and application settings. It is essentially a database, has per-user hives, multiple data types, and is generally well-suited for it’s purpose.

Lookups (retrievals) of registry values are extremely rapid since the keys are traversed using an optimal data tree (an algorithm for amazingly fast searching). It’s most frequently referenced portions, or even all of it, is usually kept in RAM.

First, let us also say that are tens to hundreds of thousands of registry keys containing possibly millions of values. Sounds like a lot, but for computers, it’s not that much to search through, especially when using an efficient data structure. It doesn’t have to go through each key one by one, for instance. Using a data tree, it can find most any key in a handful of comparisons. Quite often it can jump straight to the key it’s looking for.

Thus, when we recently added a new registry key to share between Bitsum apps, we were surprised when users complained that these two new keys were being listed as ‘obsolete’ by registry cleaners. Of course, we explained that these registry cleaners are just guessing, and the truth is that the keys are *not* obsolete, which is why they kept re-appearing after deletion.

However, even if those 2 registry keys had been obsolete, it occurred to me how curious it is that some of the less savory actors in the Registry Cleaner industry have so strongly demonized the system registry. Some would prefer you think of the registry as a performance bottleneck, when it *never* is, or as close to never as one can get in the world.

Some would prefer you think of the registry as a performance bottleneck, when it never is …

Certainly those 2 registry keys won’t have hurt anything, ever.. nor would 2000 keys. Yet, users seemed very concerned. That’s when it occurred to me that I needed to remind consumers about what the registry is, and why it doesn’t matter even f it gets ‘cluttered’, though we were *not* cluttering it up in this case.

The truth is that cleaning your registry will never yield any performance improvement, but may cause harm as registry cleaners must guess at what is safe to delete. Demonetization

As for user impulses to keep the registry ‘clean’, honestly it’s more psychological than anything else. If you want to keep it neat and tidy, that’s your prerogative, just don’t expect that to boost performance.

The truth is that cleaning your registry will never yield any performance improvement, but may cause harm as registry cleaners must guess at what is safe to delete.

All that said, back in the day, there were ways to optimize the registry, which were ironically rarely implemented by the PC optimization industry. This included rebuilding the registry hives from scratch so that their storage is more optimal. However, these days, even this is unnecessary, especially if backed by an SSD, and again hardly any optimization software does this, largely due to the danger inherent in the operation. Note what I describe here is different from simple hard drive defragmentation of the files that back the registry hives. I speak of rebuilding their internal structure by recreating them, which you can imagine can theoretically yield a *marginal* benefit. Yes, even then, it’s a marginal improvement at best.

In short, if you want to keep your registry ‘tidy’, by all means do so! Just don’t fall under the misapprehension that doing that cleaning boosts performance, reduces errors, and isn’t inherently dangerous, especially if not done with precision.

The Curious Demonization of the Windows Registry

2 thoughts on “The Curious Demonization of the Windows Registry

  1. I run CCleaner’s registry cleaner maybe every few months on my primary PC, which is backed by reasonably fast SSD and has 16Gig ram. On my other PCs, which range from old to ancient, all of which have slow spinning drives, and much less RAM (as “low” as 1Gb), I run it much more frequently (as well as all of it’s other cleaning options) .. On the slowest of PCs, it makes a huge difference (just try starting up a PC with a couple thousand “junk” registry entries, when you’re using a slow ass 5200rpm hard drive from the 250Gb era, and only have 1gig of slow ram on it) … on the better equipped PCs, I’d be hard pressed to measure a difference. It does feel good to get rid of all the junk that is left behind by crap uninstall processes, though.

    I can’t say that it’s ever solved a problem outside of improving startup speed, though.


    1. Indeed, many people use CCleaner. And of all the registry cleaners, it’s the *one* I’d recommend. I don’t use any myself, but it’s certainly fine.

      On older PCs with little RAM and slow hard drives that have an unusually high amount of registry junk (e.g. most XP installations), I will concede that it may boost startup speed as the registry is first loaded into virtual memory. However, these days, the landscape has changed – at least for most of us ;).


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s