[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: RPC performance
From: |
Andy Wingo |
Subject: |
Re: RPC performance |
Date: |
Fri, 23 Jun 2017 11:09:23 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) |
On Thu 22 Jun 2017 18:05, address@hidden (Ludovic Courtès) writes:
> Andy Wingo <address@hidden> skribis:
>
>> Why not just set to _IOFBF and let Guile 2.2's buffering handle it?
>
> Because we want controlled buffering when writing (we need to flush
> pending output when we’re done writing the RPC request), and no
> buffering at all when reading.
For controlling output buffering, there is the setvbuf buffer size, and
"force-output". In Guile 2.2 the CBOP's "write" function is really a
"flush" function -- it only gets called when the internal buffer is
filled, or when flush-output is called, or (for line-buffered ports)
when a newline is written.
Why do you not want buffering when reading? Do you need to hand off
this FD to some other process?
Andy
- Performance on NFS, (continued)
- Performance on NFS, Ludovic Courtès, 2017/06/16
- Re: Performance on NFS, Roel Janssen, 2017/06/17
- Re: Performance on NFS, Ludovic Courtès, 2017/06/17
- Re: Performance on NFS, Roel Janssen, 2017/06/17
- Re: Performance on NFS, Ricardo Wurmus, 2017/06/18
- RPC performance, Ludovic Courtès, 2017/06/19
- Re: RPC performance, Ludovic Courtès, 2017/06/19
- Re: RPC performance, Ricardo Wurmus, 2017/06/19
- Re: RPC performance, Andy Wingo, 2017/06/22
- Re: RPC performance, Ludovic Courtès, 2017/06/22
- Re: RPC performance,
Andy Wingo <=
- Re: RPC performance, Ludovic Courtès, 2017/06/23
- Re: RPC performance, Andy Wingo, 2017/06/23
- Re: RPC performance, Ludovic Courtès, 2017/06/26
- Re: RPC performance, Andy Wingo, 2017/06/26
- Re: RPC performance, Ludovic Courtès, 2017/06/19
- Re: RPC performance, Ricardo Wurmus, 2017/06/22
- Re: Combining Guix, direnv and Emacs for environment customisation, Ricardo Wurmus, 2017/06/07
- Performance on NFS, Ludovic Courtès, 2017/06/07
- Re: Performance on NFS, Ricardo Wurmus, 2017/06/07