> From: David Kerber [mailto:[EMAIL PROTECTED] > It is > executed for over 2 million data lines per day, so this routine is > executed over 10 million times per day. [snippet of code that parses the line each time elided]
Opinion: You're optimising the wrong piece of code. You're calling this 5 times in quick succession. This means you're parsing the same string the same way 5 times in quick succession. Split it on the &, put it into a suitably keyed structure such as a Map (or even an array if you want the speed and know exactly what your parameters are) and pass the keyed structure around. That way you only parse the string once. - Peter --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]