On 15 March 2012 13:17, Emmanuel Bourg <ebo...@apache.org> wrote:
> Le 15/03/2012 14:13, sebb a écrit :
>
>
>> Eclipse, so probably client VM?
>
>
> Probably. You can print the java.vm.name system property at the beginning of
> the test, that will tell you the VM used.

It was client.

I've now tried with server, and it is slower when using class fields
created by the ctor.
Curious - perhaps it is a data localisation issue, though I would have
thought the optimiser could have fetched those into local variables.

So I then tried hauling the format method calls out of the loops into
final local variables.
This improves performance (slightly) in both client and server mode.

> Emmanuel Bourg
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org

Reply via email to