[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: SRFI-13 again [was: Re: string vs list processing]
From: |
Per Bothner |
Subject: |
Re: SRFI-13 again [was: Re: string vs list processing] |
Date: |
19 Apr 2001 16:42:41 -0700 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.2 (Notus) |
Martin Grabmueller <address@hidden> writes:
> What I meant was using a StringBuffer for concatenating long lists of
> strings, which is normally done in a loop. I don't think any Java
> compiler is smart enough to figure out that he could use only _one_
> StringBuffer for something like this:
>
> s = "";
> for (i = 0; i < strings.length; i++)
> s = s + strings[i];
Well, I don't think it would take much compiler smarts to be able to
optimize this, but I agree this should be written with explicit
StringBuffer operations.
--
--Per Bothner
address@hidden http://www.bothner.com/~per/
- Re: SRFI-13 again [was: Re: string vs list processing], (continued)
- Re: SRFI-13 again [was: Re: string vs list processing], Dirk Herrmann, 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], Marius Vollmer, 2001/04/20
- Re: SRFI-13 again [was: Re: string vs list processing], Martin Grabmueller, 2001/04/23
- Re: SRFI-13 again [was: Re: string vs list processing], Marius Vollmer, 2001/04/24
- Re: SRFI-13 again [was: Re: string vs list processing], Martin Grabmueller, 2001/04/25
- Re: SRFI-13 again [was: Re: string vs list processing], Marius Vollmer, 2001/04/30
- 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 <=
- 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, 2001/04/17
- Re: string vs list processing, Marius Vollmer, 2001/04/16