[plt-scheme] interleaving the I and O in I/O

From: Prabhakar Ragde (plragde at uwaterloo.ca)
Date: Fri Feb 1 12:20:39 EST 2008

Noel Welsh wrote:
> On Feb 1, 2008 4:54 PM, Prabhakar Ragde <plragde at uwaterloo.ca> wrote:
>> I would like
>> them to not have to pay the penalty of having the current output port
>> flushed every time there is a read, so that they can interleave reads
>> and printfs (= writes) in their program and not make it slower. Is there
>> a simple way of achieving this goal? --PR
> 
> Maybe playing with file-stream-buffer-mode will do the trick.

I saw that, but it wasn't clear to me that it would help, as each port 
is already buffered on its own. It is the interaction between actions on 
different ports that is the issue here. But I will play with it and see 
if it helps. --PR


Posted on the users mailing list.