Henri Gomez wrote:
Remy Maucherat a écrit :
+0 if disabled by default; -1 otherwise.
All this stuff is inefficient, as it uses Strings. Ie, we take the byte array we have for the header value, convert it to a String, and then regexp will likely convert it to something else to work with it (likely a char array). This is bad, obviously :-(
I don't know if the JDK 1.4 stuff can work with bytes, but in any case, the benchmarks seem a lot faster.
So we need a simple byte-based regexp :) (sort of like the mapper)
May be CharacterIterator could be better in our case ?
public boolean match(CharacterIterator search, int i)
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]