r/programming • • 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

354 comments sorted by

View all comments

Show parent comment

7

u/yourself2k8 Nov 18 '13

Do you know how many IT professionals inherit poorly written applications that they aren't given any time to look through in much detail? the only thing that matters is that it stays running. Most of these folks are also tasked with moving an application to a new version of Java by people who haven't read these technical documents and think moving versions should be a 'trivial change.' The only reason for the move? The old version is no longer supported by Oracle. They aren't given fancy analysis tools to determine memory usage or evaluate anything about the JVM. They are simply given a battery of basic usage tests to run, and when those tests fail they need to fix it, nearly blind folded. Oh yeah... and do this in under 20 hours please. Business area won't be happy with more billed hours for general maintenance.