Performance != optimizing inner loops
10:18 AM
Check out Jeroen Vermeulen's wishlist for C++. He states:
The CPU cranking through loops is no longer the major time waster in most computer use. [...] Don't believe the benchmarks. Those tend to measure the straightforward, classic computing tasks that used to take so long, way back when.
He then argues that in everyday desktop usage, most of the time is spent in libraries. This is also the reason that many (semi-)interpreted languages fare reasonably well compared to compiled languages: these languages are typically very high-level, so interpreted programs spend even more time in libraries compared to compiled programs. And if the libraries are fast, then the programs are going to be fast -- even if they have to be interpreted on-the-fly.
Let's be honest, what is the biggest problem in desktop computing today? It's "first-time latency" -- the extra time that is added when you do something for the first time, or for the first time in a while. There are plenty of frustrating examples of this behaviour:
The CPU cranking through loops is no longer the major time waster in most computer use. [...] Don't believe the benchmarks. Those tend to measure the straightforward, classic computing tasks that used to take so long, way back when.
He then argues that in everyday desktop usage, most of the time is spent in libraries. This is also the reason that many (semi-)interpreted languages fare reasonably well compared to compiled languages: these languages are typically very high-level, so interpreted programs spend even more time in libraries compared to compiled programs. And if the libraries are fast, then the programs are going to be fast -- even if they have to be interpreted on-the-fly.
Let's be honest, what is the biggest problem in desktop computing today? It's "first-time latency" -- the extra time that is added when you do something for the first time, or for the first time in a while. There are plenty of frustrating examples of this behaviour:
- Start OpenOffice. It takes bloody ages. To make matters worse, it used to display an always-on-top splash screen as well!
- Open the Start Menu, or one of its submenus. Usually very quick, but sometimes it suddenly takes ages.
- Expose the desktop when you have a stretched background image on it. If you've been running some memory-intensive task, then it will take up to ten seconds to render the background. Slooooooowly.
- Open a Windows Explorer. You press Windows Key+E once, and then again when the explorer hasn't appeared 15 seconds later. After 30 seconds, all of a sudden you get two explorer windows.
- Open a context menu for an item in Windows Explorer. This may take between zero and thirty seconds, depending on whether you've done it before.

0 Comments:
Post a Comment
<< Home