|
Authored by: bugstomper on Wednesday, April 18 2012 @ 12:49 PM EDT |
They probably picked the dorkiest looking frame from the video for the slide,
catching Ellison saying "uh" looking like "duh" and being
sure to be ever so faithful to the audio when transcribing his quote with every
"uh" and "you know" intact.
I'm sure Google's lawyers were only striving for accuracy :)
By the way the comment in the source code for the String.compareTo method in
slide 52 refers to K&R ("The C Programming Language by Kernighan and
Ritchie) not Knuth.
Also, it may look like Android's code is more compact than Sun's, but Sun's may
be optimized for the Java VM - It increments one variable instead of two when
the strings are the same length, and it uses != for a test, only doing a
subtraction at the end, where the Android version always subtracts and tests the
result for non-zero. Which of those is faster could depend on the the
architecture of the VM and so each could be the best on their own platform. Or
on Android it might be more important to have fewer instructions for less memory
usage rather than try to optimize away a few nanoseconds here and there.
[ Reply to This | Parent | # ]
|
|
|
|
|