in reply to Re^6: Binary search algorithm.
in thread Binary search algorithm.
You probably meant to say that modifying $try here is superfluous.
No. Because it does the right thing it is not superfluous.
it's actually a teenie weenie bit faster to use pre-increment and pre-decrement.
So... you are for optimization over clarity?
As Donald Knuth has said:
We should forget about small efficiencies, say about 97% of the time: premature optimization is the root of all evil
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^8: Binary search algorithm.
by BrowserUk (Patriarch) on Aug 14, 2011 at 18:44 UTC | |
|
Re^8: Binary search algorithm.
by ikegami (Patriarch) on Aug 14, 2011 at 21:06 UTC |