[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#12033: closed (Re: bug#12033: format should be faster)
From: |
Andy Wingo |
Subject: |
bug#12033: closed (Re: bug#12033: format should be faster) |
Date: |
Tue, 21 Aug 2012 21:35:46 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux) |
On Tue 21 Aug 2012 13:37, address@hidden (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
--
http://wingolog.org/
- bug#12033: format should be faster, Ludovic Courtès, 2012/08/18
- bug#12033: format should be faster, nalaginrut, 2012/08/20
- bug#12033: format should be faster, Ludovic Courtès, 2012/08/20
- Message not available
- Message not available
- bug#12033: closed (Re: bug#12033: format should be faster), Ludovic Courtès, 2012/08/20
- bug#12033: closed (Re: bug#12033: format should be faster), nalaginrut, 2012/08/20
- bug#12033: closed (Re: bug#12033: format should be faster), Noah Lavine, 2012/08/20
- bug#12033: closed (Re: bug#12033: format should be faster), Ian Price, 2012/08/20
- bug#12033: closed (Re: bug#12033: format should be faster), Ludovic Courtès, 2012/08/21
- bug#12033: closed (Re: bug#12033: format should be faster), Noah Lavine, 2012/08/21
- bug#12033: closed (Re: bug#12033: format should be faster), Ludovic Courtès, 2012/08/21
- bug#12033: closed (Re: bug#12033: format should be faster),
Andy Wingo <=
- bug#12033: closed (Re: bug#12033: format should be faster), nalaginrut, 2012/08/22
- bug#12033: closed (Re: bug#12033: format should be faster), Ludovic Courtès, 2012/08/23