[racket-dev] Inline caching (was Re: my '312' this semester, how we compare to others)

From: Asumu Takikawa (asumu at ccs.neu.edu)
Date: Wed May 4 18:54:28 EDT 2011

On 2011-05-04 18:49:13 -0400, Tony Garnock-Jones wrote:
> The attached (highly experimental) patch seems to improve the
> performance of normal sends (in the case of a cache hit) by roughly
> 100% - 150%. The difference between this mere factor of two
> improvement and the factor of six-through-ten I was seeing earlier
> is, I speculate, related to object-ref taking a lot of time.
> Interestingly, the performance of (send something message) is, with
> this patch, seemingly roughly en par with the performance of
> generics captured using generic and invoked using send-generic.
> I haven't yet tried running a full racket system with this patch
> applied. I wonder if it makes a difference to the interactive
> performance of DrRacket?

Wow, impressive! I've been benchmarking with the DrRacket interactive
tests already for contracts, so I can run my test driver and get some
numbers for that.


Posted on the dev mailing list.