Community
Participate
Working Groups
There are several method to escape or replace certain patterns in text in RWT, such as: * EncodingUtil#escapeXXX, #replaceNewlines, etc. * WidgetLCAUtil#escapeText When more than one of these methods are called for the same input, the string is looped over again and again. By combining those methods we copying the string repeatedly could be avoided. More ideas for optimization: - initialize size of string buffers - check for occurrences of the pattern beforehand
EncodingUtil has been ported to the client, and the Java version is rarely used anymore. Does this make this bug obsolete?
Right, we do not have to optimize these methods anymore since they're only used in the compatibility layer.