Why your registry doesnít need cleaning

A long time ago, in a land forgotten by time (before Microsoft Windows 95), Windows computers and their programs had .ini (configuration) files that stored information. These files determined how a program ran, its environment, and a host of other things.

Then the Windows Registry came onto the scene, with each key in the registry being similar to a bracketed heading in the old .ini file and values similar to entries under the .ini headings. However, registry keys can have nested subkeys with string or binary data that .ini files donít support. Does the registry periodically need cleaning? Letís take a look.

Hives and keys?

A registry hive is a group of keys, subkeys, and values in the registry that has a set of supporting files that contain backups of its data. The registry has gone through very little changes, so if youíre interested in learning more about it, check out ďWhatís all the buzz about registry hives?Ē

If youíre not too familiar with the registry and how it works, there are a slew of different companies that would like to sell you a registry cleaner. Do you need to clean your registry? Letís look at the facts.

What registry cleaners claim to do

What do registry cleaners claim to accomplish? Well, some of them claim to reduce the size of the registry and remove orphaned entries to speed up Windows. Sure, removing orphaned entries will reduce the size, but todayís hard drives have gigabytes of free space and 10 MB isnít going to make a difference.

Besides, no one can give you a benchmark telling you how much speed youíll gain. The reason they canít tell you how much faster your system will run is because the size of the registry has nothing to do with the speed at which your machine operates.

The .ini files are flat text files, which require sequential searching. Registry files are database files, complete with indexing. If the index is up to date ó and the system rebuilds it after each change, so it probably is ó then size makes no difference.

Other registry cleaners say theyíll remove invalid registry entries that can cause errors in other installed programs. Programs keep registry entries in their own keys and rarely reference keys written by other programs. They also include an uninstall routine that deletes the entries when you remove the program.

Many older programs may not work this way, and maybe some of todayís programs donít do the best job of clearing their entries. However, the system will never reference the data that they leave behind.

Some registry cleaners claim that they correct problems with Windows crashes and error messages. Iíve been an administrator on Windows machines since NT 3.5, and Iíve never traced a crash or error message to the registry ó nor have I met any administrator who has.

Finally, some registry cleaners say they remove entries pointing to nonexisting files that are invalid and require deletion. If a registry entry points to a file thatís no longer present, of course you can delete them. However, if an entry points to something that doesnít exist, then the system will never use it. Do you delete every unused file on your computer?

Who needs registry cleaners?

There are two types of people who possibly might need registry cleaners. The first are those people who open up the registry and make manual changes. These people know exactly what theyíre doing; they follow precise instructions from the manufacturer, or they just like to tinker around and see what happens. This group might need to undo what theyíve done and could use a registry cleaner.

The second group of people who definitely need to clean their registries are programmers and developers. During the development of a program, you might go through hundreds of install/uninstall routines. Itís important to ensure that youíre working with a clean machine to make sure previous problems donít interfere with the latest version of your software.

Final thoughts

If youíre a developer or someone who fiddles with the registry, then by all means find yourself a good registry cleaner. As for the rest of us, leave the registry alone, and donít buy into the hype of needing to clean your registry.