From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ludovic.courtes@laas.fr (Ludovic =?iso-8859-1?Q?Court=E8s?=) Newsgroups: gmane.lisp.guile.devel Subject: Unbuffered socket I/O Date: Fri, 23 Feb 2007 18:09:16 +0100 Organization: LAAS-CNRS Message-ID: <87mz34ol6r.fsf@laas.fr> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1172250772 6785 80.91.229.12 (23 Feb 2007 17:12:52 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 23 Feb 2007 17:12:52 +0000 (UTC) To: Guile-Devel Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Fri Feb 23 18:12:40 2007 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HKdyJ-0007Q7-9o for guile-devel@m.gmane.org; Fri, 23 Feb 2007 18:12:39 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HKdyI-0000xm-Ug for guile-devel@m.gmane.org; Fri, 23 Feb 2007 12:12:38 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HKdv0-0007Jy-1d for guile-devel@gnu.org; Fri, 23 Feb 2007 12:09:14 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HKduz-0007JB-Aj for guile-devel@gnu.org; Fri, 23 Feb 2007 12:09:13 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HKduz-0007J4-4b for guile-devel@gnu.org; Fri, 23 Feb 2007 12:09:13 -0500 Original-Received: from laas.laas.fr ([140.93.0.15]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.52) id 1HKduy-00018v-Ka for guile-devel@gnu.org; Fri, 23 Feb 2007 12:09:12 -0500 Original-Received: by laas.laas.fr (8.13.8/8.13.8) with SMTP id l1NH9ASl023524; Fri, 23 Feb 2007 18:09:11 +0100 (MET) X-URL: http://www.laas.fr/~lcourtes/ X-Revolutionary-Date: 5 =?iso-8859-1?Q?Vent=F4se?= an 215 de la =?iso-8859-1?Q?R=E9volution?= X-PGP-Key-ID: 0xEB1F5364 X-PGP-Key: http://www.laas.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 821D 815D 902A 7EAB 5CEE D120 7FBA 3D4F EB1F 5364 X-OS: powerpc-unknown-linux-gnu Mail-Followup-To: Guile-Devel User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) X-Spam-Score: 0 () X-Scanned-By: MIMEDefang at CNRS-LAAS on 140.93.0.15 X-detected-kernel: Solaris 10 (beta) X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:6549 Archived-At: 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