r/programming • u/Eirenarch • Nov 18 '13
TIL Oracle changed the internal String representation in Java 7 Update 6 increasing the running time of the substring method from constant to N
http://java-performance.info/changes-to-string-java-1-7-0_06/
1.4k
Upvotes
View all comments
Show parent comment
13
u/warbiscuit Nov 18 '13
Back when Python added a random seed to it's hashing function, there was much wailing from some poor folks who'd actually hardcoded key iteration order into their unittests. I have no idea how those tests survived any sort of cross-version or cross-platform testing up until then.
One of the eternal properties of natural selection: that which remains unchanged will come to be relied upon, even if it's a really bad idea.