re: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11235

"This bug is really a performance/scalability/resources issue.  The code is
full (especially in the handlers) of string concatenation operators.  This
is
a very resource intensive operation when concatenating anything more than 2
string (i.e. "a" + "b" + "c" + "d") because of the temporary objects created
and then discarded with each concatenation.  It is very preferable to use a
single StringBuffer instance to do this type of concatenation.  This
eliminates the temporary object creation and hence improves performance.
This
is especially critical in the assorted handlers, where the use of the
concatenation operator is most prevalent, because these classes are going to
be your bottlenecks for client interaction."

I suppose that this would be a good project for people who want to help out
without getting too deep into intricacies.  Not the highest of priorities,
but the changes should be clear and isolated.  The patches should be fairly
easy for people to vet, and the maintainers to commit.

Peter, do you want to pick a single file, make the changes, and post it as a
sample for what you think others should do?  Not that this is more than rote
conversion, but we might as use something as simple as this to start trying
to adopt good habits.

        --- Noel


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to