Even a chimp can write code

Thursday, June 14, 2007

Joel Spolsky's brush with Vista's SuperFetch

In a scathing post on the new Safari 3 for Windows, Joel remarks how slow the browser is while starting up. He likens Apple's performance claims as reality distortion, but later makes an update saying:
The more I run Safari on Vista, the faster it launches. Am I hallucinating? Is there a cosmic force that means just when I complain about Safari taking 57 seconds to launch, as soon as that complaint is made public, it launches much more quickly? Am I going insane? Or is someone playing a clever prank on me?

Well Joel, you're not going insane. Ironically this is Microsoft's Windows Vista coming to Safari's rescue. You see, Windows Vista has a little known feature called SuperFetch, which
enables programs and files to load much faster than they would on Windows XP–based PCs.

When you're not actively using your computer, background tasks—including automatic backup programs and antivirus scans—run when they will least disturb you. These background tasks can take up system memory space that your programs had been using. On Windows XP–based PCs, this can slow progress to a crawl when you attempt to resume work.

SuperFetch monitors which applications you use the most and preloads these into your system memory so they'll be ready when you need them. Windows Vista also runs background programs, like disk defragmenting and Windows Defender, at low priority so that they can do their job but your work always comes first.


The Windows team has figured out that the more you use something, the more you must like it and the easier and faster it should be to load. But you won't see that in a Microsoft ad.

Labels: , , , ,

Email this | Bookmark this

4 Comments:

  • Out of interest have you got anything to back up this claim what it is SuperFetch helping Safari?
    I don't see the comparitive speed improvements that Safari is getting after multiple runs happening to other applications (no arguement on improvements, just not to this degree. Could be rephrased to what has Safari done right to get this increase where others have only gained small increases through SuperFetch?)

    By Blogger Robert MacLean, at June 14, 2007 at 3:01 PM  

  • Not having access to Spolsky's PC, its only a darned good guess right now :)

    I'd recommend Michael Fortin's video on C9: http://channel9.msdn.com/showpost.aspx?postid=242429. There isn't a way to declaratively buy into SuperFetch in Vista by design, although he thinks this may be a direction they may choose in future. For now it is really upto Vista's adaptive learning capabilities. You may be able to game the OS into doing stuff for you but this isn't really recommended; you'd rather expend time and resources building an app that was performant on XP and Vista (or whatever).

    By Blogger Ashish Shetty, at June 14, 2007 at 5:28 PM  

  • >what has Safari done right

    Safari as done nothing "right", except to load horrendlously slow.

    By Anonymous Anonymous, at June 14, 2007 at 8:26 PM  

  • Superfetch isn't so super at all.. it will thrash and beat your harddrive to death always trying to guess which programs you will use next and loading them into memory. Not only is this massive amounts of unnecessary wear and tear on the harddrive... its noisy, it gernerates heat, shortens the life of your harddrive, create competition for disk access to other programs, and makes it impossible to get any indication of abnormal harddrive activity going on (such as when a virus gets hold and runs amuck). Superfetch will drive you crazy. Disable it, you will be so much happier.

    And you don't even need it... Windows will already use your memory as a cache... whatever last programs you used, stay in empty memory until you open them again, and then they will open right back up. Disable Superfetch, then launch Firefox. Close it. Launch it again. See how fast it pops right back up?

    To disable it, go Start:search and type services.msc, then double-click on Superfetch, change to Disable and click on STOP.

    By Blogger Mark, at February 1, 2008 at 4:29 PM  

Post a Comment | Home | Inference: my personal blog