guile-user
[Top][All Lists]
Advanced

[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/



reply via email to

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