From: achrist at easystreet.com (Al Christians)
Date: Fri, 02 Apr 1999 16:50:09 -0800
Subject: string.join() vs % and + operators
References: <37054490.E79ADCC9@easystreet.com> <aahzF9L6qJ.1Jw@netcom.com>
Message-ID: <370565C1.7DD4D7D0@easystreet.com>
X-UID: 1379                                                  

Aahz Maruch wrote:
> 
> Yup.  Using '+' for strings really bites when you've got long (or
> potentially long) strings.  The average size of the string you're
> concatenating is about a hundred characters; suppose you're doing CGI
> work with redirects, and you're looking at closer to three hundred
> characters a pop.
> 
> Try adding a 1K pre-string to the front of each of your Ways and see
> what happens to the speed.

Time went up from 69 secondes to 115.  So it takes only a little bit
longer to join the strings than it does to skip over 1k exach time.

Al




