note
dragonchild
While faster, it is more prone to error should there be any change in requirements. It also needs a helluvalot of commenting so that your maintenance programmer(s) (which could very well be you!) don't make a well-meaning change and screw it up.
<p>Like all optimizations, it should be done only if that section of code has been identified as a bottleneck through profiling. (Never use analysis as the only source of information when profiling. Using a profiler is the <b>only</b> way to truly know where your bottlenecks are.)
<p>------<br><i>We are the carpenters and bricklayers of the Information Age.</i><p>Don't go borrowing trouble. For programmers, this means <i>Worry only about what you need to implement.</i><p>Please remember that I'm crufty and crochety. All opinions are purely mine and all code is untested, unless otherwise specified.
278953
278969