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.


_______________________________________________
Guile-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/guile-devel

Reply via email to