|Authored by: Anonymous on Tuesday, September 25 2012 @ 11:52 AM EDT|
- The author used to work at Sun.
- He wrote the arrays package there, including rangecheck.
- After he went to google, and much later, he wrote the fast sort (ported
timsort from Python).
- He anticipated this would go back into the arrays package as an alternative or
replacement sort, so he actually started with the arrays package, and (as a good
programmer should), reused the stuff he had written there previously.
- When he decided to contribute the stuff to Android, he neglected to remove or
rewrite the 9 line rangecheck function.
- (Speculation) In the case of the sort, multiple calls to rangecheck were
mainly to debug the sort code itself, so
- (Asserted fact) rangecheck doesn't even exist in recent shipping versions of
The whole thing about how "Sun's code made Android go faster; rangecheck is
the most important thing in the world; it's called a gazillion times at
startup" is the most bogus bull-excrement in the world. Calling rangecheck
actually SLOWED DOWN Android.
[ Reply to This | Parent | # ]