A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
stringbuffer initial size
Joined: Feb 11, 2002
May 24, 2002 14:15:00
strbuf = new stringBuffer();
i have let say following four strings
I want to use strbuf.append(...) or each of the above strings.
To what the initial size of stringBuffer should be set to .
Joined: Feb 26, 2001
May 24, 2002 15:18:00
Don't worry about it.
will automatically adjust its size to accommodate new appends.
I agree. Here's the link:
subject: stringbuffer initial size
StringBuffer not outperforming "+"
HashTable - performance issue for millions of values stored
Alternative to StringBuffer
String, StringBuffer & OutOfMemoryError
Create padding strings with minimum memory use
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013