Re:Range-Checks and Recklessness
by bunderbunder on Sunday March 23, 2014 @10:05PM
(#7456285)
If you're really in a position where you need to worry about performance down to the level of counting individual instructions then you probably shouldn't be relying on someone else to do your benchmarks for you, anyway.
In my experience range checks did affect the speed, but range check alone may not be to blame. It might well be that code pieces became a tad bit larger than what a compiler would automatically inline, and those snow-balled.
In case you have such a benchmark handy would appreciate a link 'cause fast is good, but fast and correct is way better.