Sorry, we seem to be having this discussion on the wrong mailing list.
Forwarding.
---------- Forwarded message ----------
From: Alessio Stalla <alessiostalla(a)gmail.com>
Date: Thu, Oct 29, 2009 at 9:36 AM
Subject: Re: [j-devel] Improving startup time: sanity check
To: Erik Huelsmann <ehuels(a)gmail.com>
Cc: armedbear-j-devel(a)lists.sourceforge.net, Alex Muscar <muscar(a)gmail.com>
On Wed, Oct 28, 2009 at 11:34 PM, Alessio Stalla
<alessiostalla(a)gmail.com> wrote:
> On Wed, Oct 28, 2009 at 11:20 PM, Alessio Stalla
> <alessiostalla(a)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.