On Thu, Dec 11, 2008 at 12:24 PM, Didier Verna <didier.verna@...> wrote:
> I've noticed something a bit surprising recently: it seems that
> instantiating a class with :class wide slots performs a bit faster when
> the slots are given an :initform rather than left unititialized (that is
> with (safety 3) (speed 0)).
> Since assigning either an initform value, or the unbound value should
> only occur at the time the class is created, that should not have an
> impact on the performance of instantiation; so I fail to see what could
> explain the slight speed variation.
I cannot replicate this with 18.104.22.168, so I'm guessing the difference
was due to SHARED-INITIALIZE (SLOT-OBJECT) attempting to pointlessly
initialize unbound shared slots from the initform.
If you still see this with 22.214.171.124 or later, please post a benchmark
which exhibits the slowdow.