hey guys! Any conclusion?

On Tue, 2012-08-21 at 21:35 +0200, Andy Wingo wrote: 
> On Tue 21 Aug 2012 13:37, l...@gnu.org (Ludovic Courtès) writes:
> 
> >> It seems clear that in this case, Guile "should" know how to dispatch
> >> on the format string just once, outside of the loop, instead of doing
> >> it in every iteration.
> >
> > I think Andy would say: “inline cache!”.  :-)
> 
> :-)
> 
> There are lots of possibilities here.  You could "compile" a format
> string into a closure, and save it in a hash table.  You could compile
> it to Scheme and then compile that procedure.  You could recognize some
> common degenerate cases.
> 
> Dunno!  In this case I would compile the string into a closure.  Seems
> pretty cheap and it would kill the dispatch overhead.
> 
> Andy





Reply via email to