guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: string vs list processing


From: Bill Gribble
Subject: Re: string vs list processing
Date: Mon, 16 Apr 2001 08:36:04 -0500
User-agent: Mutt/1.3.17i

On Mon, Apr 16, 2001 at 02:59:15PM +0200, Sascha Ziemann wrote:
> Any suggestions for a HTTP replay? ;-)

Be smart about when you call string operations.  In Gnucash, we use
guile to assemble multi-megabyte HTML documents.  You can't go around
string-appending every "<" to "p>" to construct this size string; the
garbage you generate is ridiculous.  You will get much better
performance if you cons up a list of component strings, reverse it at
the end, and apply string-append to the whole list.

b.g.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]