[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Unbuffered socket I/O
From: |
Ludovic Courtès |
Subject: |
Unbuffered socket I/O |
Date: |
Fri, 23 Feb 2007 18:09:16 +0100 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) |
Hi,
Is there a reason why `SCM_SOCK_FD_TO_PORT ()' in `socket.c' asks for an
unbuffered port? This results in awful inefficiency, as can be seen
with `strace':
read(7, "\x43", 1) = 1
select(1024, [7], [], [], {0, 0}) = 1 (in [7], left {0, 0})
read(7, "\x4c", 1) = 1
select(1024, [7], [], [], {0, 0}) = 1 (in [7], left {0, 0})
read(7, "\x41", 1) = 1
select(1024, [7], [], [], {0, 0}) = 1 (in [7], left {0, 0})
I'd like to change it to:
#define SCM_SOCK_FD_TO_PORT(fd) \
scm_fdes_to_port (fd, "r", sym_socket)
Thanks,
Ludovic.
- Unbuffered socket I/O,
Ludovic Courtès <=
- Re: Unbuffered socket I/O, Neil Jerram, 2007/02/23
- Re: Unbuffered socket I/O, Kevin Ryde, 2007/02/25
- Re: Unbuffered socket I/O, Kevin Ryde, 2007/02/26
- Re: Unbuffered socket I/O, Ludovic Courtès, 2007/02/28
- Re: Unbuffered socket I/O, Kevin Ryde, 2007/02/28