String.substring performance degraded after moving from JDK 6 to JDK 7
Issue
- Our application has some parser or serializer making heavy use of String.substring. This worked fine on JDK 6. But we recently migrated to JDK 7 and performance is severely degraded. GC logging shows GCs are happening much more frequently now on JDK 7.
Environment
- Java
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.