Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

RE (tilly) 1: The Best Infinite Loop

by tilly (Archbishop)
on Oct 17, 2000 at 04:31 UTC ( #37068=note: print w/ replies, xml ) Need Help??


in reply to The Best Infinite Loop

Well I was going to reply to this with an amusing anecdote, then I found that the relevant chapter of Code Complete is online. Here is a sample section from this classic on benchmarking.

The anecdote was that your infinite loop reminded me of the story of a team that was trying to speed up an operating system. Well they profiled and found that it spent most of its time in one loop. So they optimized the heck out of that loop - only to find no reduction in the time spent in that code.

Turns out that they had optimized the idle loop!

Oops. :-)

On an ironic note, I have heard elsewhere that even though they did not speed up the OS, it turned out that they had made it noticably more responsive to users and smoother at multi-tasking. So it turned out to be a good thing to do after all!


Comment on RE (tilly) 1: The Best Infinite Loop

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://37068]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2014-09-18 05:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (108 votes), past polls