[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: string vs list processing
From: |
Neil Jerram |
Subject: |
Re: string vs list processing |
Date: |
17 Apr 2001 22:56:16 +0100 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 |
>>>>> "Bill" == Bill Gribble <address@hidden> writes:
Bill> Be smart about when you call string operations. In Gnucash,
Bill> we use guile to assemble multi-megabyte HTML documents. You
Bill> can't go around string-appending every "<" to "p>" to
Bill> construct this size string; the garbage you generate is
Bill> ridiculous. You will get much better performance if you
Bill> cons up a list of component strings, reverse it at the end,
Bill> and apply string-append to the whole list.
So one could imagine a `lazy' implementation of string-append that did
this automatically. With almost no thought, I guess that the issues
involved would be very similar to those for copy-on-write.
On the other hand, perhaps doing this would be to encourage bad
programming habits?
Regards,
Neil
- Re: SRFI-13 again [was: Re: string vs list processing], (continued)
- Re: SRFI-13 again [was: Re: string vs list processing], Rob Browning, 2001/04/20
- Re: SRFI-13 again [was: Re: string vs list processing], Per Bothner, 2001/04/19
- Re: SRFI-13 again [was: Re: string vs list processing], Martin Grabmueller, 2001/04/19
- Re: SRFI-13 again [was: Re: string vs list processing], Per Bothner, 2001/04/19
- Re: string vs list processing, Martin Grabmueller, 2001/04/17
- Re: string vs list processing, Jorgen 'forcer' Schaefer, 2001/04/17
- Re: string vs list processing, Martin Grabmueller, 2001/04/18
- Re: string vs list processing,
Neil Jerram <=
- Re: string vs list processing, Marius Vollmer, 2001/04/16