tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Henri Gomez <hgo...@apache.org>
Subject Re: Http Connector / Gzip
Date Tue, 07 Oct 2003 10:57:57 GMT
Remy Maucherat a écrit :

> 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: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message