commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sebb <seb...@gmail.com>
Subject Re: [CSV] Performance
Date Thu, 15 Mar 2012 15:45:16 GMT
On 15 March 2012 13:17, Emmanuel Bourg <ebourg@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-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Mime
View raw message