RFR: Optimize StringBuilder.append(null)

Martin Buchholz martinrb at google.com
Mon Apr 8 23:43:33 UTC 2013


On Wed, Mar 27, 2013 at 11:32 PM, Remi Forax <forax at univ-mlv.fr> wrote:

> On 03/28/2013 07:29 AM, Martin Buchholz wrote:
>
>   The declaration saves 50 bytes of bytecode.
>>
>
> I don't understand ?
>

Copying a field into a method local results in fewer bytes of bytecode,
which may tickle hotspot into inlining the method for you.  Although it's
hard to demonstrate this.



More information about the core-libs-dev mailing list