[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: output streams vs output ports

This page is part of the web mail archives of SRFI 68 from before July 7th, 2015. The new archives for SRFI 68 contain all messages, not just those from before July 7th, 2015.

Shiro Kawai <shiro@xxxxxxxx> writes:

> Srfi-18 and srfi-21 require the conforming implementations to take
> care of serializing simultaneous access to a port.  If we have
> separate port/stream layers, the locking can be handled by the
> port layer.  This frees up the stream layers from taking care
> of expensive locking, which will be a performance gain for e.g.
> translated streams.

Could you clarify what would be expensive about it?  Getting the
synchronization right is sure difficult to program, but I don't think
there's a necessarily large performance hit.  (Specifically, Scheme 48
does it all entirely without locking.)

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