getrailo/railo — pull request #78 by igal-getrailo (2012-11-15 06:02:46+00:00)
Title: set initial capacity to string builder instead of default 16

also replaced StringBuffer with StringBuilder in ReplaceNoCase()

in my experience most strings that are used as input for Replace and ReplaceNoCase are longer than 16 chars. using the default capacity will needlessly grow and copy the buffer multiple times.

if it doesn't make sense then simply reject this request.