From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Marius Vollmer Newsgroups: gmane.lisp.guile.user Subject: Re: [PATCH] Improved string writing Date: Tue, 24 May 2005 22:42:52 +0300 Message-ID: <87k6locsw3.fsf@zagadka.de> References: <87is2h39ab.fsf@laas.fr> <878y3di0ku.fsf@zip.com.au> <87fyxky404.fsf@laas.fr> <87d5sn93xu.fsf@zip.com.au> <874qdz92ml.fsf@zip.com.au> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1116963857 3058 80.91.229.2 (24 May 2005 19:44:17 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 24 May 2005 19:44:17 +0000 (UTC) Cc: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Tue May 24 21:44:13 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DafJ9-0003MV-Hr for guile-user@m.gmane.org; Tue, 24 May 2005 21:43:19 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DafMo-0004fR-Vd for guile-user@m.gmane.org; Tue, 24 May 2005 15:47:07 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DafLK-0002zH-TW for guile-user@gnu.org; Tue, 24 May 2005 15:45:35 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DafLH-0002xF-Fr for guile-user@gnu.org; Tue, 24 May 2005 15:45:31 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DafLH-0002xB-8x for guile-user@gnu.org; Tue, 24 May 2005 15:45:31 -0400 Original-Received: from [213.243.153.35] (helo=smtp2.pp.htv.fi) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DafIy-0000zh-2Z for guile-user@gnu.org; Tue, 24 May 2005 15:43:08 -0400 Original-Received: from zagadka.ping.de (cs181072157.pp.htv.fi [82.181.72.157]) by smtp2.pp.htv.fi (Postfix) with SMTP id 87816296C12 for ; Tue, 24 May 2005 22:42:52 +0300 (EEST) Original-Received: (qmail 19060 invoked by uid 1000); 24 May 2005 19:42:52 -0000 Original-To: Kevin Ryde In-Reply-To: <874qdz92ml.fsf@zip.com.au> (Kevin Ryde's message of "Fri, 22 Apr 2005 08:38:42 +1000") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:4576 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.user:4576 Kevin Ryde writes: > (I notice "write" style string output in iprin1() always goes > char-by-char, it'd be nice if it scanned ahead for a char needing an > escape, to send the non-escape block as a single lfwrite. Decent size > runs of plain chars are probably quite likely.) I like this variant best. I don't think that writing strings with lots of escape sequences to an unbuffered port happens often enough to justify implementing a second buffering mechanism. When outputting an escaped char, we can additionally assemble the escape sequence in a fixed size buffer and then output that in one go. I will make that change myself in the next days, but if anyone beats me to it... -- GPG: D5D4E405 - 2F9B BCCC 8527 692A 04E3 331E FAF8 226A D5D4 E405 _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://lists.gnu.org/mailman/listinfo/guile-user