From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mike Gran Newsgroups: gmane.lisp.guile.devel Subject: =?utf-8?q?Re=3A_Optimization_=26_factorization_of_=E2=80=98write?= =?utf-8?b?4oCZ?= Date: Tue, 14 Sep 2010 11:31:48 -0700 (PDT) Message-ID: <455480.11700.qm@web37907.mail.mud.yahoo.com> References: <877hiowglj.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1284489120 27753 80.91.229.12 (14 Sep 2010 18:32:00 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 14 Sep 2010 18:32:00 +0000 (UTC) To: =?utf-8?B?THVkb3ZpYyBDb3VydMOocw==?= , guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Tue Sep 14 20:31:58 2010 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.69) (envelope-from ) id 1OvaIN-0002gZ-Vj for guile-devel@m.gmane.org; Tue, 14 Sep 2010 20:31:56 +0200 Original-Received: from localhost ([127.0.0.1]:42248 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OvaIN-00089S-EZ for guile-devel@m.gmane.org; Tue, 14 Sep 2010 14:31:55 -0400 Original-Received: from [140.186.70.92] (port=38310 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OvaIJ-00089N-1J for guile-devel@gnu.org; Tue, 14 Sep 2010 14:31:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OvaIH-0006PM-UO for guile-devel@gnu.org; Tue, 14 Sep 2010 14:31:50 -0400 Original-Received: from web37907.mail.mud.yahoo.com ([209.191.91.169]:24415) by eggs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1OvaIH-0006P9-Jv for guile-devel@gnu.org; Tue, 14 Sep 2010 14:31:49 -0400 Original-Received: (qmail 17875 invoked by uid 60001); 14 Sep 2010 18:31:48 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1284489108; bh=UkYqHNt9mzAL+l9VNrMpPix8XWs8ZlhRl8CBKMGv5CM=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=IakrN8FmPMi1gt5W/2X3+7bXxcVKtm3JowL659cqfUN6ZOUEumVKZP2VhX1MGi4a1XiOo1XZxZVb1qg0WFedH5WCXLk4jbr2YBT4siz0mgcfgphO1nZvSv7DInk6Gm7wlBrq2UQNee121+kKpGRd+Pl3cgI7FsdvuO+uCwypM/8= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=M2eZPtqAAnld4SbzA6iE8KrBYdx1r5PkxhHPSqp7pI2UMFL/JPwziMDnDN+md9hXhXbnXD000QWMJmabmkzTYBvSgk6NNLThf5R+I03/uGA3hAljbO7hUBh17pmZ1WUjS0qMIsQ/acx/HpZGHep9MsNCYiJvMYjtrjC2oD8rPMI=; X-YMail-OSG: 8rlwGmIVM1myZ664NuPIa3WZxU2nAldX1xfFGdtiEB1DQVb H4rrkG2NSWgZhjlT7R4wDm7l7rA5yYczIGGAu17Tmy.AnK72FhOwcGVpE.Qw tn.7wWJqtsuAWPoVO8tEA9Qwd4xFu7IGHd.dN6uZe6OsvaMckfpjYR8_JmAN uydIqrM7uA93bALWheip.llHZETUuEmG9iXBLxHNgYL3aXulERMG6au0I5oC 09SK7OenbjhCdDwELin41_JA1w2stUVx8d4ensbM.pAvnTKo6cmrB_HWCs97 ml7lQMOLkjRcgU__ls_xbwekV1fq5Nsm6zBn28kXl0bCjSKFFMbCvqyxefzN de8Lbr3YzfuBb5VOf5Zp4lCTD Original-Received: from [207.8.91.2] by web37907.mail.mud.yahoo.com via HTTP; Tue, 14 Sep 2010 11:31:48 PDT X-Mailer: YahooMailRC/470 YahooMailWebService/0.8.105.279950 In-Reply-To: <877hiowglj.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: FreeBSD 6.x (1) 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:10913 Archived-At: > From: Ludovic Court=C3=A8s =0A> =0A> Hi!=0A> =0A> In a prof= ile =E2=80=98write=E2=80=99 was showing up unreasonably high, so I decided = to=0A> bite the bullet, so to speak.=0A> =0A> I ended up factorizing charac= ter and string writing, and removing heap=0A> allocations from the path.=C2= =A0 The end result is ~2.6x faster when writing=0A> strings.=0A=0ANice.=0A= =0A> =0A> Feedback welcome, especially from Mike.=C2=A0 :-)=0A=0AI haven't = tried it out yet, but,...=0A=0AI noticed you stripped out the code that pri= nts combining accents=0Aas attached to dotted circles (#\=E2=97=8C=CC=80 in= stead of #\=CC=80). I thought that=0Awas a rather nice feature.=0A=0AI have= a script that I used to check string and char input/output.=0AI'll try to = test it out in the next couple of days.=0A=0AThanks,=0A=0AMike=0A