Re: Significant Speedup of Generic Function Dispatch

From: Erick Gallesio <eg_at_kaolin.unice.fr>
Date: Fri, 12 Apr 1996 20:41:08 +0100

> "David McClain" writes

> I have incorporated changes to the basic generic function dispatch code that
> significantly improve the speed of generic function dispatch. I invented two
> new slots for <Generic> function objects that cache the last used specializer
> list and corresponding method. By comparing the caller's specializer list with
> that held by the cache and taking the last used method if equal the speedup of
> generic function dispatch is nearly a factor of two! The cache must be
> discredited whenever a new method is added to a generic function, or on a
> specializer miss.
>

**Thanks a lot**
It's a long time I want to add a cache to the gf and never began to implement
it. I will be really happy to integrate it in the next release.
Thanks again.

                -- Erick
Received on Fri Apr 12 1996 - 20:41:08 CEST

This archive was generated by hypermail 2.3.0 : Mon Jul 21 2014 - 19:38:59 CEST