output streams vs output ports Taylor Campbell (18 Jun 2005 00:26 UTC)
Re: output streams vs output ports Michael Sperber (18 Jun 2005 07:57 UTC)
Re: output streams vs output ports Taylor Campbell (18 Jun 2005 15:17 UTC)
Re: output streams vs output ports Michael Sperber (18 Jun 2005 18:51 UTC)
Re: output streams vs output ports Shiro Kawai (18 Jun 2005 21:06 UTC)
Re: output streams vs output ports Michael Sperber (19 Jun 2005 09:09 UTC)
Re: output streams vs output ports Shiro Kawai (19 Jun 2005 09:41 UTC)
Re: output streams vs output ports Michael Sperber (20 Jun 2005 05:41 UTC)
Re: output streams vs output ports Shiro Kawai (20 Jun 2005 09:16 UTC)
Re: output streams vs output ports Michael Sperber (21 Jun 2005 07:43 UTC)
Re: output streams vs output ports Shiro Kawai (21 Jun 2005 08:08 UTC)
Re: output streams vs output ports Michael Sperber (27 Jun 2005 05:45 UTC)

Re: output streams vs output ports Michael Sperber 21 Jun 2005 07:43 UTC

Shiro Kawai <xxxxxx@lava.net> writes:

> The simple-minded copy program:
>
>    (call-with-input-file "/usr/share/dict/words"
>      (lambda (in)
>        (call-with-output-file "/dev/null"
>          (lambda (out)
>            (do ((c (read-char in) (read-char in)))
>                ((eof-object? c))
>              (write-char c out))))))
>
> It runs 3.5x faster if I bypass locking of 'in' and 'out' ports
> in Gauche.

Could you selectively bypass the locking of only the input port so we
get a better idea what the specific issue with the output port is?
(In the stream layer, the pragmatics of buffering are very different
for input and output.)

--
Cheers =8-} Mike
Friede, Völkerverständigung und überhaupt blabla