[armedbear-devel] Fwd: [j-devel] Improving startup time: sanity check

Erik Huelsmann ehuels at gmail.com
Thu Oct 29 09:20:32 UTC 2009


Sorry, we seem to be having this discussion on the wrong mailing list.
Forwarding.


---------- Forwarded message ----------
From: Alessio Stalla <alessiostalla at gmail.com>
Date: Thu, Oct 29, 2009 at 9:36 AM
Subject: Re: [j-devel] Improving startup time: sanity check
To: Erik Huelsmann <ehuels at gmail.com>
Cc: armedbear-j-devel at lists.sourceforge.net, Alex Muscar <muscar at gmail.com>


On Wed, Oct 28, 2009 at 11:34 PM, Alessio Stalla
<alessiostalla at gmail.com> wrote:
> On Wed, Oct 28, 2009 at 11:20 PM, Alessio Stalla
> <alessiostalla at gmail.com> wrote:
>> The test might be wrong
>
> It was, indeed, wrong. It measured class loading time too for
> reflection, but that can't be eliminated, no matter what instantiation
> technique you use.
>
> New results on 50000 iterations:
>
> REFLECTION: 9660480097
> NEW: 88353767
> % SLOWER: 10933
>
> REFLECTION: 9602410291
> NEW: 78459331
> % SLOWER: 12238
>
> REFLECTION: 9925574038
> NEW: 86923015
> % SLOWER: 11418
>
> ~100 times slower is still impressive.

Incidentally, if those figures are right, it means that class loading
from byte array is very costly too, and Erik's idea is likely to
improve performance significantly if the application never uses a
relatively large part of Lisp.




More information about the armedbear-devel mailing list