Why does my program run faster if I click and hold the caption bar

| | TrackBacks (0)

Wow... example of how not to update status in a GUI!

The Old New Thing : Why does my program run faster if I click and hold the caption bar?

Sometimes, people discover that a long-running task runs faster if you hold down the mouse. How can that be?

This strange state of affairs typically results when a program is spending too much time updating its progress status and not enough time actually doing work. (In other words, the programmer messed up badly.) When you click and hold the mouse over the caption bar, the window manager waits for the next mouse message so it can determine whether you are clicking on the caption or attempting to drag.

0 TrackBacks

Listed below are links to blogs that reference this entry: Why does my program run faster if I click and hold the caption bar.

TrackBack URL for this entry: http://kennethhunt.com/mt/mt-tb.cgi/1657

About this Entry

This page contains a single entry by klsh published on February 21, 2006 11:43 AM.

Is Someone Hacking Your MySpace Passwords: Your Account Is Not Secure If You Chose A Simple Password was the previous entry in this blog.

the best free dictionary! Century Dictionary Online is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.