[MIT-Scheme-devel] Is it still a PORT?

2009-11-24 Thread Joe Marshall
It turns out that when you read a source code file that the inner loop of the parser does a lot of superfluous checking of PORT? Although PORT? is an inexpensive operation, it still involves an out-of-line call, and it gets called eleven times for each character of input. I've got some changes th

Re: [MIT-Scheme-devel] Is it still a PORT?

2009-11-24 Thread Taylor R Campbell
Date: Tue, 24 Nov 2009 09:37:39 -0800 From: Joe Marshall It turns out that when you read a source code file that the inner loop of the parser does a lot of superfluous checking of PORT? Although PORT? is an inexpensive operation, it still involves an out-of-line call, and it ge

Re: [MIT-Scheme-devel] Is it still a PORT?

2009-11-24 Thread Joe Marshall
On Tue, Nov 24, 2009 at 10:21 AM, Taylor R Campbell wrote: >   Date: Tue, 24 Nov 2009 09:37:39 -0800 >   From: Joe Marshall > >   It turns out that when you read a source code file that the >   inner loop of the parser does a lot of superfluous checking >   of PORT?  Although PORT? is an inexpens

Re: [MIT-Scheme-devel] Is it still a PORT?

2009-11-25 Thread Joe Marshall
Just pushed a few more changes. I wrote a simple benchmark which just involved reading 97800 symbols from a file. (The symbols were already interned). Before these latest changes, the median speed was 13872 symbols per second. These last changes put us at 14662 symbols per second. (For compari

Re: [MIT-Scheme-devel] Is it still a PORT?

2009-11-25 Thread Chris Hanson
Might be nice to have the benchmark in the tests directory. On Wed, Nov 25, 2009 at 3:19 PM, Joe Marshall wrote: > Just pushed a few more changes.  I wrote a simple benchmark which just > involved reading 97800 symbols from a file.  (The symbols were already > interned).  Before these latest chan