RFR: 8202548: Use reservation Object when creating SpeciesData (original) (raw)
Claes Redestad claes.redestad at oracle.com
Wed May 2 13:54:38 UTC 2018
- Previous message: RRF: 8187123: (reflect) Class#getCanonicalName and Class#getSimpleName is a part of performance issue
- Next message: RFR: 8202548: Use reservation Object when creating SpeciesData
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi,
a small follow-up to JDK-8202184 in line with Peter Levart's suggestion, where we can avoid instantiating two different SpeciesData objects, and should avoid creating an instance of the Function on each lookup:
Webrev: http://cr.openjdk.java.net/~redestad/8202548/open.00/ Bug: https://bugs.openjdk.java.net/browse/JDK-8202548
This is a small micro-optimization, as well as granting more freedom to future newSpeciesData implementations.
Thanks!
/Claes
- Previous message: RRF: 8187123: (reflect) Class#getCanonicalName and Class#getSimpleName is a part of performance issue
- Next message: RFR: 8202548: Use reservation Object when creating SpeciesData
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]