Why does my computer run fast after a clean install?

33

11

I recently formatted and reinstalled Windows on my laptop. It now runs much faster. I have been doing this about once a year for the past decade. Why is this needed?

I always figured this had to do with installing and removing programs, which over time fill up the registry with junk. Is this true? Are there any programs that can tweak the system without reformatting?

DanJ

Posted 2010-11-19T10:56:13.127

Reputation: 491

1I haven't booted into Windows in months for this very reason. – Gareth Davidson – 2010-11-19T13:52:31.433

2XP w/SP1 and no AV software, smokin' fast....its all about what is added after the clean install that slows a system down. – Moab – 2010-11-19T14:20:19.253

@Gaz: What in the world? You are missing out. – Flotsam N. Jetsam – 2010-11-19T16:19:52.030

9I have a corporate managed desktop running WinXP and McAfee. It is perfectly "clean" with only MS Office and Firefox installed. Those are run about once a month. Prior to corporate management and McAfee updates it was smoking fast to start-up and run apps. After a year, with no additional software installed, and practically no browsing... certainly no viruses. It takes minutes to fully startup and Office and even Firefox apps are so slow they are barely usable. I've experienced this degradation over time "phenomenon" with Windows systems for the last decade regardless of usage patterns. – Michael Prescott – 2010-11-19T17:10:07.913

3@Flotsam, not really. If it wasn't for the need to connect to customer VPNs using softkeys, I would have deleted my Windows partition years ago when I transitioned from being a Windows power user to a free software hacker. – Gareth Davidson – 2010-11-20T16:44:21.657

tl;dr: too much crap – Ian Boyd – 2011-11-10T14:08:19.570

Windows 8.1/8 has a new feature that you can wipe the "program" part of your HD with a single button; you files are saved, but it will "refresh" the operating system and remove all programs/reset the registry. – Anonymous Penguin – 2013-11-07T21:30:07.883

Answers

37

The registry is a bit of a misconception, The way it works, it could be filled with junk but it shouldn't slow down your machine - imagine, all roads are linked, but just because there is a traffic jam somewhere doesn't always mean it will affect you somewhere completely different!

It is pretty much just software that starts with your computer, updaters and bad drivers.

You can greatly speed up your computer using Microsoft / Sysinternals AutoRuns and delete/disable enries you do not want to start up with your machine.

William Hilsum

Posted 2010-11-19T10:56:13.127

Reputation: 111 572

1"The registry is a bit of a misconception" <-- That's very interesting to know. Do you have any reference for that? – Hippo – 2010-11-19T12:30:30.183

1@Hippo - It is from experience, I am currently trying to write a blog post about this, it will probably finished early next week. – William Hilsum – 2010-11-19T13:00:32.387

1@Will - will you actually do some tests, for example look at the number of lookups/sec, time to execute, disk queue lengths and so on, or just write about how you feel? – Gareth Davidson – 2010-11-19T13:49:41.237

4@Gaz Davidson - Fully scientific! Not sure about disk queue etc, but will be a lot of benchmarks. – William Hilsum – 2010-11-19T13:57:45.310

@Will: That's not true - the registry is a simple-minded database, and any database structure becomes inefficient after many updates, requiring reorganization to restore performance. Just read any of the many analysis of the behavior of B-trees under heavy update. – harrymc – 2010-11-19T16:34:21.353

1@Harrymc, the only time I have seen it slow down the computer is with file extensions and shell extensions that are left e.g. right click behaviour. Standard entries in HKLM/HKCU etc, imho do not slow down the computer. I have been meaning to write this all up for some time and do proper research - if I am wrong I will apologise, but from everything I have seen, it simply is not the case. – William Hilsum – 2010-11-19T16:47:33.137

@Will: You should try to uninstall one of the big Adobe products such as Design Premium suite. Revo found me close to 10,000 left-overs in the registry. After I repeated the operation a few times with differing Adobe versions, clean & defrag of the registry did speed up the startup time, but of course only for registry-heavy products. – harrymc – 2010-11-19T17:11:47.187

@Will: I have add to my much-downvoted answer a full explanation of how and why such a slow-down occurs. – harrymc – 2010-11-20T11:06:02.693

After running AutoRuns I was able to see how many drivers and other junk are loaded by the system. This was an eye-opener – DanJ – 2010-11-23T05:35:40.987

@Wil - I'd love to read that post once it's finished. :) – Isxek – 2010-11-23T16:50:10.080

While most registry errors will not affect system performance, there are some places in the registry that will affect performance. For example, the command prompt will be a lot slower if the PATH variable contains too many directories. Also, some programs might tweak settings without asking, which can change the way Windows handles the RAM and pagefile. – TuxRug – 2010-11-24T06:14:54.843

Msconfig is also a good tool :) – omeid – 2011-10-10T08:04:24.000

Did you ever post that blog entry? – Pops – 2011-11-18T23:31:53.443

1@LordTorgamus Still on my to do list :( - With a new job and more, I really don't think I will have time to do it any time soon :( Sorry. – William Hilsum – 2011-11-19T08:23:42.907

2@harrymc: Saying that "the registry is a simple-minded database" actually means that you don't know how the registry is exactly implemented. You can't talk about the efficiency of the registry without knowing its implementations or doing proper measurements. Your B-trees analogy is really far-fetched, the registry is definitely not a B-tree... – Tamara Wijsman – 2012-03-20T13:16:31.467

Furthermore, stating clean & defrag of the registry did speed up the startup time means exactly nothing because you also uninstalled the product itself, to get a proper measurement you should only touch the registry. And make it reproducible (.reg files) so we can see the difference as well... – Tamara Wijsman – 2012-03-20T13:18:17.470

@TomWijsman from this Technet article, "NT places all key control blocks into an alphabetized binary tree to enable quick searches for existing key control blocks by name". Also another mention in the footnote of page 24 in this book... Which explains why the registry doesn't slow your computer down.

– Breakthrough – 2012-05-27T16:10:38.137

@Breakthrough: That's not the registry itself, just the key control blocks. – Tamara Wijsman – 2012-05-28T21:52:52.037

50

  • You try out lots of applications
    • Due to you computer's configuration, Windows loads in more junk than on a clean install.
    • Software developers believe their apps are so vital that
      • part of them must be loaded at boot time and have icons in the system notification area.
      • they need a special driver (but no one tries to write small drivers any more)
      • they should check something every 5s even if it only changes every 3 weeks
        • availability of updates Wil
        • screen orientation
        • attachment of a phone etc
        • new files appearing that need indexing, adding to albums ...
    • Software developers tend to have the latest Mega-PC, and believe you should too.
      • So people with "slow" PCs should fix any problems by buying a new PC for the app.
  • viruses, trojans, etc
  • anti-viruses, anti-trojans, etc

P.S. I'm a software developer.

RedGrittyBrick

Posted 2010-11-19T10:56:13.127

Reputation: 70 632

Well well, the PC gets Mega only as much as the developer using it. (Also a developer) :)) – LoneWOLFs – 2014-09-16T13:05:31.310

27Now, now, we don't all believe everyone has the latest Mega-PC... We just believe everyone SHOULD have the latest Mega-PC!! :) (I also am a developer) – BBlake – 2010-11-19T14:39:37.193

1@BBlake - quite right, answer corrected :-) – RedGrittyBrick – 2010-11-19T14:49:13.363

5Everyone SHOULD have the latest Mega-PC (I am a software developer.) – Jason – 2010-11-19T15:13:46.143

4Every developer SHOULD NOT have Mega-PC. (I'm a developer.) – Vasyl Boroviak – 2010-11-24T06:09:43.373

A Mega-PC isn't always necessarily to develop, unless you work with high end stuff. (I'm also a developer). – Karolinger – 2012-11-26T02:12:32.553

If your software only runs on a Mega-PC, you're softwaring wrong (Also developer). – medivh – 2013-07-22T13:46:48.650

14

The biggest slow downs are:

  1. The crap-ware you keep installing. If you don't use it, un-install it. Before installing anything ever again, do a little research into what the best apps are to do what your trying to do without a lot of overhead (post such a question on SuperUser--you'll get rep points!)

  2. The next biggest thing is your anti-virus and other "security" type software. Throw that all away and learn how to surf safely. If you must download something from an unknown source, run it through virustotal.com before executing. I don't care what they say you can survive just fine without anti-virus software running on your machine. I'm not saying you should shut off windows firewall, just don't add an anti-virus or internet security suites.

Flotsam N. Jetsam

Posted 2010-11-19T10:56:13.127

Reputation: 1 291

@Hippo: -1 for throwing away your antivirus. A security suite is critical for a computer, and even though people say that antivirus programs may not cover up all the possible security flaw entries, it still is somewhat effective though. – JFW – 2010-11-21T04:22:04.237

3@JFW: I'm sorry, but you ain't much of a superuser if you're using that garbage. Sounds like you've been brainwashed by those security suite racketeers. – Flotsam N. Jetsam – 2010-11-22T13:37:38.707

-1, 2) of this advice is plain bad. With driveby downloads, cross site scripting vulns and all the usual viruses and malware being a smart user is vital, but so is some sort of automated protection. – Sirex – 2010-12-16T11:01:46.377

1@Sirex: Say what you will. I've had to remove too many viruses from folk's pc's that had AV installed & running to fall for that trash. – Flotsam N. Jetsam – 2010-12-16T13:32:43.117

1You don't have to throw out your antivirus, but real-time protection is overkill if you are surfing safely. I have MBAM installed and run it periodically whenever I know I'm not using the machine for crtical tasks. Real-time protection is for kids and Aunt Ethel types. – LawrenceC – 2010-12-27T18:32:01.720

@ultrasawblade: Amen. You certainly don't have to. But boy can those things suck up pc resources! – Flotsam N. Jetsam – 2010-12-27T18:39:53.163

1No such thing as surfing safely. I've had downloader attempts off of mainline websites that formerly were trusted websites. Safe surfing now means you don't view blogs, don't use your computer for entertainment, only go to commercial sites that have a vested interest in keeping their security top-line, don't run Flash, Java, Quicktime, etc. This includes Linux systems, Adobe and Oracle spread the vulnerability love everywhere. – Fiasco Labs – 2012-05-27T16:12:02.247

1I concur, going without antivirus is like driving without seatbelts ("just drive safely"). Ditch bloated antivirus (Symantec, McAfee), sure, but there are lightweight alternatives (MSE). – Mark Sowul – 2012-05-27T16:23:00.633

1I don't know if it's because I live here, but most of computers here get infected with pendrives. My experience says Antivirus is necessary. – Karolinger – 2012-11-26T02:14:48.033

7

No, even if the registry was massively bloated there would be little impact on the performance of anything other than exhaustive searches (ed. of the registry itself).

is a quote (in the comments) by Mark Russinovich, who is a widely recognized expert in Windows operating system internals as well as operating system architecture and design.

Up to this point nobody has proven him wrong with extensive unbiased tests, that involve multiple reboots, multiple computers, different sets of software and can easily be reproduced. It's one of those myths that get debunked amongst many other so-called performance improvement tips, simple because nobody has even reproducible claimed that the cleaning on its own improves performance. Because really, removing entries that aren't even touched while your PC boots is not going to have much effect.

What mainly slows down your PC are AREs (automatically running entries) which you can clean with AutoRuns, this tool list the following: Logon Applications, (Internet) Exprorer extensions, Scheduled Tasks, Services, Drivers, Codecs, Boot Execution Code, Image Hijacks, AppInit and KnownDLLs, WinLogon, Winsock Providers, Print Monitors, LSA Providers, Network Providers and Sidebar Gadgets.

Over time, these applications themselves load more information which is what makes software like Disk Cleanup come to existence. CCleaner these days does quite well on enumerating most of the files of most of the software you have, however you will want to stay away from its registry cleaning capabilites with have a higher chance of breaking something than giving you any performance benefits.

The most well known locations where this happens are the Temporary folders of Windows as well as caches and history files and folders of your browser, these are files and folders that are actively used and thus play a big role in your performance. Other files may include those referenced to by the registry or by configuration files on your computer. Keeping the amount of software and files / folders on your system to those that you actually might help as well.

So, to summarize:

  • Cleaning the registry does not make the registry smaller, but leaves blank space behind.

  • Compacting the registry to remove blank spaces can be done with NTREGOPT as administrator.

  • The registry itself does not become slower as its size grows.

  • Entries in the registry can affect the performance of your installation, mostly the AREs entries.

  • Files on your system that are referenced by the registry or configuration also play a big role.

  • Make sure you regularly get rid of viruses, software you don't need and cleaning out old files.

Here's what Chris Pirillo from Lockergnome (famous for his TECH on CNN) has to say:

Tamara Wijsman

Posted 2010-11-19T10:56:13.127

Reputation: 54 163

5

I tune up customer PCs regularly. While each PC is different, the changes that have the most impact generally are:

  1. Defragment the hard disk and ensure there is at least a few gig free for work space. Move the pagefile to a separate hard drive from the OS, if they have a 2nd physical hard drive.
  2. Remove all those extra processes in memory (use process explorer to see them, use ccleaner to disable). Reducing processes running in memory from 70-90 to about 50 can make a huge difference in speed and responsiveness (this is typical what I see for XP PCs).
  3. Uninstall unneeded programs. This gives back disk space and often removes processes out of memory and out of the startup.
  4. Update OS/applications/firmware - so they are all current. This helps stability and security more often than speed.

I've tried a variety of register cleaners/compactors/etc. over the years, and they've never made a difference I could detect.

Bruce

Posted 2010-11-19T10:56:13.127

Reputation: 51

3Please note I have changed your username. Since your post is legitimate I am assuming your not a spammer, however please note that having links in your profile is fine, advertising a site, even your own, within posts and as your name is frowned upon. – BinaryMisfit – 2010-11-23T16:30:20.837

3

The first data written on a hard disk can be retrieved faster:

For a clean install you will probably use only the fastest part of the hard-disk. With an old computer your harddisk is probably full and/or system files (updates, etc) are written to the slower part of the hard disk.

Roalt

Posted 2010-11-19T10:56:13.127

Reputation: 463

2

Since Windows 2000 realized I was trying to understand when and why Windows OSes start to work slowly. And I found the reason and the cure.

The reason is audio/video codecs. Do not install any audio/video codec! Even DivX is not necessary. Codec packs are evil. :) In Windows any installed codec is a windows driver. Any driver slows the boot time and the general performance.

The cure is VLC player. This one don't require any codecs, they are embedded.

Since then all my systems (Windows OSes) almost don't lag, boot fast, and never hangs.

Vasyl Boroviak

Posted 2010-11-19T10:56:13.127

Reputation: 617

I'm sorry but "Any codec is windows driver" is a misconception. VLC player is good piece of software, though. – Tom Pažourek – 2010-11-21T10:29:50.653

You are correct. Changed to "In Windows any installed codec is a windows driver." – Vasyl Boroviak – 2010-11-24T06:07:35.793

1It's not. It's a direct show filter, which is not a driver. – sinni800 – 2011-11-10T12:27:45.367

-6

One case of real-life measurements about how registry cleaning can improve performance is found in the article : Putting Registry-/system-cleanup apps to the test. Please note that to arrive at a situation where registry slow-down occurred, the tester installed CNET’s list of the 20 most popular Windows downloads. This is his summary of the measurements of boot and shut-down :

enter image description here

Here is the explanation of why does this arrive.

The registry is a simple-minded database, and has the distinction of being one of the slowest database systems in the world. In an attempt to somewhat protect it, Microsoft has partitioned it into 5 separate hives.

Over time the registry becomes larger and larger as new programs are installed, used and removed. Even though data is deleted from it when applications are uninstalled, the size of the Registry will not decrease. This is because the data will be marked as blank but remains in place and also because of "left overs" - data that the uninstaller forgot to remove. In this way the registry becomes slower over time, taking longer to access.

There are many products to clean up the registry, but that doesn't help much if one doesn't then also re-compact it, in this way erasing the blank spots occupied by deleted data. As the vast majority of registry-cleaners do not do compaction, they are in effect useless.

A computer whose owner likes to try out software products, installing and uninstalling, may benefit from registry cleaning and compaction, but only after quite many such operations. Please note that any improvement will only show up for registry access, which is normally only a small part of what any normal program does. Some products for whom registry access is a major activity are for example the Windows boot and Installer.

Computers whose setup is relatively static, have nothing to worry about, so have no need for registry cleaners.

Cleaning and compacting the registry is not a 100% process. So once a slow-down is experienced, registry tools may improve the situation, but can never compare for speed with a clean installation of Windows.

harrymc

Posted 2010-11-19T10:56:13.127

Reputation: 306 093

9Registry housekeeping for speed is a racket. Wil's comments about the registry are right on. I've had a bloated 5 year old registry that didn't slow me down because I had control over the things I mentioned in my answer. – Flotsam N. Jetsam – 2010-11-19T15:43:09.377

16Downvote for the Registry cleaner and defragger links. I'm sorry but those things are just snake oil... – Rob Moir – 2010-11-19T15:58:12.193

2@Robert Moir et co. : They are not snake oil for a computer that has seen much install/uninstall of products, but it even so it takes a year or two before they become useful. This I know from personal experience (being a bit of software-maniac), so nothing you can say will change what I said. They are truly useless for a computer seeing only normal usage. However, in all cases, these products cannot totally undo the degradation and so cannot totally restore performance as does a clean install. – harrymc – 2010-11-19T16:19:58.010

10And nothing you can say will change what I said. There's plenty of evidence out there that supports my point of view more than an anecdote from someone's personal experience. – Rob Moir – 2010-11-19T16:22:36.603