SpringSource/spring-framework — pull request #143 by olivergierke (2012-09-11 10:55:22+00:00)
Title: Working around String.substring(…) issue introduced in Java7u6

The String.substring(…) method seems to have become significantly slower
on the latest Java7 updates so that we see performance degradation by a
factor of 100-1000 in ResourceDatabasePopulator, especially for large SQL
files processed. I've worked around this by minimizing the substring
scope to the least amount possible to prevent unnecessary internal
copying of String (which seems to cause the issue).

See http://mail.openjdk.java.net/pipermail/core-libs-dev/2012-May/010257.html

Issue: SPR-9781