chicken-users
[Top][All Lists]
Advanced

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

Re: [Chicken-users] Faster read for custom input ports?


From: Thomas Chust
Subject: Re: [Chicken-users] Faster read for custom input ports?
Date: Tue, 7 Feb 2006 20:33:16 +0000 (GMT)

On Tue, 7 Feb 2006, ReedSheridan wrote:

[...] Is there a way to read a port which, at a low level, will call FCGX_GetStr(str,some_large_number,streamp) ? [...]

Hello,

as far as I know, nearly all the CHICKEN input boils down to repeated calls to read-char. But you may get quite a performance boost if you let your custom input ports do some buffering. An example how to do that can be seen in the source of CHICKEN's tcp unit.

The output on the other hand happens in somewhat larger units by default in CHICKEN.

cu,
Thomas




reply via email to

[Prev in Thread] Current Thread [Next in Thread]