[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [dev-serveez] icecast; yet another guile question
From: |
stefan |
Subject: |
Re: [dev-serveez] icecast; yet another guile question |
Date: |
Mon, 27 May 2002 11:11:42 +0200 (CEST) |
On Mon, 27 May 2002, Martin Grabmueller wrote:
> > From: stefan <address@hidden>
> > Date: Fri, 24 May 2002 14:58:19 +0200 (CEST)
> >
> > My question now: Is guile file i/o meant to be slow; or did I just use
> > the wrong procedures?
>
> Of course Guile is not slow on purpose... The problem is that you
> read data byte-wise, which is slow for whatever language you take...
>
> In newer Guiles, the procedure `read-string!/partial' can be used to
> read data `en bloc' from a port. It tries to read as much data as
> told, but may return earlier in case not enough data is available.
> See documentation at:
>
> http://www.glug.org/docbits/guile-doc-out/html/guile-1.7.0/guile_30.html#SEC319
>
> If you don't want to depend on newer Guiles, you can maybe take some
> inspiration or code from the C implementation of
> `read-string!/partial'.
Well, exactly this is done via (svz:read-file). That is; I do not want to
depend on newer Guile versions. Thanks anyway for the above hint.
Thanks,
address@hidden