[fpc-pascal] Sockets IO speed
Michael Van Canneyt
michael.vancanneyt at wisa.be
Thu Feb 1 10:33:10 CET 2007
On Thu, 1 Feb 2007, Alexander Todorov wrote:
> Hello,
> an old e-mail on the Lazarus mailing lists says:
>
> topic: [lazarus] c faster than pascal? was: Compiling GlScene ...
>
> On 6/12/06, Michael Van Canneyt <michael at freepascal.org> wrote:
> [ skip ]
>
> > By default FPC uses a 256 byte buffer for text IO; The C library uses a
> > 4K buffer. Obviously, C's input/output will be faster by a large factor.
>
> [ skip ]
>
> Does FPC use such buffer when doing Sockets.Send/Sockets.Recv ?
It depends on whether you use the Text file or if you use a simple socket
descriptor. In the case of the Text file: yes it does. If you use a simple
socket descriptor: no buffer is used.
Michael.
More information about the fpc-pascal
mailing list