From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kevin Ryde Newsgroups: gmane.lisp.guile.devel Subject: Re: Unbuffered socket I/O Date: Wed, 07 Mar 2007 11:30:00 +1100 Message-ID: <87slchrj3r.fsf@zip.com.au> References: <87mz34ol6r.fsf@laas.fr> <87abz13kxl.fsf@zip.com.au> <877iu59fm8.fsf@laas.fr> <87odng64o3.fsf@ossau.uklinux.net> <87irdox8w7.fsf@laas.fr> <87d53u7z6k.fsf@zip.com.au> <87wt21cosk.fsf@laas.fr> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1173227423 21441 80.91.229.12 (7 Mar 2007 00:30:23 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 7 Mar 2007 00:30:23 +0000 (UTC) Cc: Guile-Devel To: Neil Jerram Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Wed Mar 07 01:30:16 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 1HOk2o-00088V-OX for guile-devel@m.gmane.org; Wed, 07 Mar 2007 01:30:15 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HOk2q-0000km-Bn for guile-devel@m.gmane.org; Tue, 06 Mar 2007 19:30:16 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HOk2n-0000kh-IQ for guile-devel@gnu.org; Tue, 06 Mar 2007 19:30:13 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HOk2l-0000kV-6O for guile-devel@gnu.org; Tue, 06 Mar 2007 19:30:12 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HOk2k-0000kS-VL for guile-devel@gnu.org; Tue, 06 Mar 2007 19:30:11 -0500 Original-Received: from mailout1-8.pacific.net.au ([61.8.2.215] helo=mailout1.pacific.net.au) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HOk2i-0000ew-1Y for guile-devel@gnu.org; Tue, 06 Mar 2007 19:30:08 -0500 Original-Received: from mailproxy2.pacific.net.au (mailproxy2.pacific.net.au [61.8.2.163]) by mailout1.pacific.net.au (Postfix) with ESMTP id 291235A065D; Wed, 7 Mar 2007 11:30:03 +1100 (EST) Original-Received: from localhost (ppp2076.dyn.pacific.net.au [61.8.32.118]) by mailproxy2.pacific.net.au (Postfix) with ESMTP id 94DA527406; Wed, 7 Mar 2007 11:30:02 +1100 (EST) Original-Received: from gg by localhost with local (Exim 4.63) (envelope-from ) id 1HOk2b-0002cC-PQ; Wed, 07 Mar 2007 11:30:01 +1100 Mail-Copies-To: never In-Reply-To: <87wt21cosk.fsf@laas.fr> (Ludovic =?iso-8859-1?Q?Court=E8s's?= message of "Thu, 01 Mar 2007 10:10:19 +0100") User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) 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:6593 Archived-At: ludovic.courtes@laas.fr (Ludovic Court=E8s) writes: > > N calls to `scm_getc ()' Speaking of scm_getc ... I've wondered for a while if some of the low level reading funcs ought to be looking directly into the read buffer instead of making a call to scm_getc for every char. My experience has usually been that a function call per character is very much to be avoided if performance on sizeable input matters. I'd have in mind simple bits like rdelim `read-line' which could do a scan of the buffer for a newline; and possibly scm_flush_ws (within `read') which is looking for non-whitespace and jumping over comments. Not sure if helping the latter would be noticable speedup, but it's nice to think that big chunks of comments in sources could be cheap to read. _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://lists.gnu.org/mailman/listinfo/guile-devel