RFR: 8198888: Reduce string allocation churn in InvokerBytecodeGenerator
peter.levart at gmail.com
Thu Mar 1 13:17:33 UTC 2018
623 name = c.getName().replace('.', '/');
Did you know that there are 319 occurrences of .replace('.', '/') in JDK
sources and tests (45 occurrences in java.base without tests)?
Isn't that enough to create a special API on the java.lang.Class that
would cache this or at least something in an internal java.base package?
On 03/01/2018 01:14 PM, Claes Redestad wrote:
> two trivial optimizations that get rid of a few percent on ISC startup
> Webrev: http://cr.openjdk.java.net/~redestad/8198888/jdk.00/
> Bug: https://bugs.openjdk.java.net/browse/JDK-8198888
More information about the core-libs-dev