RFR: 8071571: Move substring of same string to slow path
Roger Riggs
Roger.Riggs at Oracle.com
Fri Mar 27 21:57:36 UTC 2015
Hi,
@Martin: does the final have some functional reason to be present?
I see it just bulks up the source, reducing readability. If it is
useful to improve performance then fine.
Roger
On 3/27/2015 5:51 PM, Lev Priima wrote:
> Updated and put some more final in other(not @Deprecated) methods:
> http://cr.openjdk.java.net/~lpriima/8071571/2/
>
> Lev
>
> On 03/27/2015 11:50 PM, Martin Buchholz wrote:
>>
>>
>> On Fri, Mar 27, 2015 at 1:49 PM, Lev Priima <lev.priima at oracle.com
>> <mailto:lev.priima at oracle.com>> wrote:
>>
>> Martin,
>>
>> You mean it should be like this:
>> char[] val = value; /* avoid getfield opcode */
>> int end = val.length;
>> ?
>>
>>
>> Yes.
>>
>> (although I personally like to write it like this:
>>
>> final char[] value = this.value;
>> int end = value.length;
>>
>>
>
More information about the core-libs-dev
mailing list