[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [MIT-Scheme-devel] Is it still a PORT?
From: |
Taylor R Campbell |
Subject: |
Re: [MIT-Scheme-devel] Is it still a PORT? |
Date: |
Tue, 24 Nov 2009 13:21:32 -0500 |
User-agent: |
IMAIL/1.21; Edwin/3.116; MIT-Scheme/7.7.90.+ |
Date: Tue, 24 Nov 2009 09:37:39 -0800
From: Joe Marshall <address@hidden>
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.
Hmm... How about caching the values of (port/operation/read-char
port) and (port/operation port 'DISCRETIONARY-WRITE-CHAR) in the db,
which should also avoid some ASSQ calls?