JDK 9 RFR of 6375303: Review use of caching in BigDecimal
Peter Levart
peter.levart at gmail.com
Fri Mar 14 10:42:36 UTC 2014
On 03/14/2014 01:32 AM, Brian Burkhalter wrote:
>
> On Mar 12, 2014, at 1:45 AM, Peter Levart wrote:
>
>> What would the following cost?
>>
>>
>> private transient String stringCache;
>>
>> public String toString() {
>> […]
>
> This version did not show any significant difference in the benchmark
> results (updated)
>
> http://cr.openjdk.java.net/~bpb/6375303/6375303-bench.html
> <http://cr.openjdk.java.net/%7Ebpb/6375303/6375303-bench.html>
>
> versus the other approaches. This is not to say that the benchmark is
> valid for any of them. This approach does have the advantage or not
> using volatile.
I've forgot to run this on my Raspberry Pi. Stay tuned...
Peter
>
> Thanks,
>
> Brian
More information about the core-libs-dev
mailing list