RFR(S): 8067471: Use private static final char for empty Strings
aleksey.shipilev at oracle.com
Fri Dec 19 17:52:49 UTC 2014
On 21.12.2014 18:37, Lev Priima wrote:
> Thanks for exhaustive research. Looks formal enough to claim that both
> variants of change bring only perf advantages, but, as I understand,
> which one is better is not so straightforward.
Both are sound performance-wise, and you can see that they produce
almost the similar assembly (I would guess static finals and constant
pool entires really share the same memory arena).
So the choice is the actual style. I like the cuteness of "".value().
More information about the core-libs-dev