RFR : 8013528 : (XS) Provide SharedSecrets access to String(char[], boolean) constructor (original) (raw)
Mike Duigou mike.duigou at oracle.com
Tue Apr 30 04:30:00 UTC 2013
- Previous message: RFR: 8011814/8013271/8013272: Three improvements to J2SE Netbeans project
- Next message: RFR : 8013528 : (XS) Provide SharedSecrets access to String(char[], boolean) constructor
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hello all;
This change originated as part of JDK-8006627 (which was also previously split into JDK-8007398 as well). It adds an internal mechanism for performance sensitive usages to create a string from a provided character array without copying that array. This saves both in the allocation (and subsequent GC) as well as the copying of the characters. There are a few places in the JDK that return Strings which can benefit from this change.
http://cr.openjdk.java.net/~mduigou/JDK-8013528/0/webrev/
Fear not, JDK-8006627 and JDK-8007398 will be revisited... For now it would be to get this change in to allow other potential users to move forward with their changes.
Mike
- Previous message: RFR: 8011814/8013271/8013272: Three improvements to J2SE Netbeans project
- Next message: RFR : 8013528 : (XS) Provide SharedSecrets access to String(char[], boolean) constructor
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]