Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Working around String.substring(…) issue introduced in Java7u6 #143

Closed
wants to merge 1 commit into from

Conversation

odrotbohm
Copy link
Member

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

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
@ghost ghost assigned cbeams Sep 11, 2012
@cbeams
Copy link
Contributor

cbeams commented Sep 11, 2012

Thanks, Ollie.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants