RFR: 8199865: Avoid initializing ShortCache in ProxyGenerator
mandy chung
mandy.chung at oracle.com
Tue Mar 20 16:36:09 UTC 2018
Looks fine. Nice small perf gain.
Mandy
On 3/20/18 7:47 AM, Claes Redestad wrote:
> Hi,
>
> by using Map<Object, Integer> instead of Map<Object, Short>
> (preserving shortness of values) we can avoid having ProxyGenerator
> depend on Short$ShortCache, which is a small startup and footprint win
> (since Integer$IntegerCache is 100% likely to have already been
> initialized):
>
> http://cr.openjdk.java.net/~redestad/8199865/open.00/
>
> Thanks!
>
> /Claes
>
More information about the core-libs-dev
mailing list