unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* Unbuffered socket I/O
@ 2007-02-23 17:09 Ludovic Courtès
  2007-02-23 22:36 ` Neil Jerram
  2007-02-25 22:57 ` Kevin Ryde
  0 siblings, 2 replies; 21+ messages in thread
From: Ludovic Courtès @ 2007-02-23 17:09 UTC (permalink / raw)
  To: Guile-Devel

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
Guile-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-devel


^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2007-08-07 16:01 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-02-23 17:09 Unbuffered socket I/O Ludovic Courtès
2007-02-23 22:36 ` Neil Jerram
2007-02-25 22:57 ` Kevin Ryde
2007-02-26 14:07   ` Ludovic Courtès
2007-02-26 20:32     ` Neil Jerram
2007-02-26 23:35       ` Kevin Ryde
2007-02-27  9:11       ` Ludovic Courtès
2007-02-28 21:24         ` Kevin Ryde
2007-03-01  9:10           ` Ludovic Courtès
2007-03-04 23:48             ` Kevin Ryde
2007-03-07  0:20             ` Kevin Ryde
2007-03-07  0:30             ` Kevin Ryde
2007-03-07  4:45               ` Kevin Ryde
2007-03-07  9:40               ` Ludovic Courtès
2007-02-26 23:27     ` Kevin Ryde
2007-02-28  9:47       ` Ludovic Courtès
2007-02-28 20:59         ` Kevin Ryde
2007-03-01 10:44           ` Ludovic Courtès
2007-03-05 23:15             ` Kevin Ryde
2007-08-07 16:01               ` Ludovic Courtès
2007-05-13 17:13       ` `scm_std_select ()' call in `fport_wait_for_input ()' Ludovic Courtès

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).