markt-asf commented on issue #146: Fix 
https://bz.apache.org/bugzilla/show_bug.cgi?id=63235
URL: https://github.com/apache/tomcat/pull/146#issuecomment-471181388
 
 
   Thanks for taking a look at the code.
   
   I was concerned about the HashMap vs ConcurrentHashMap as well but in the 
tests included with the patch the difference was very small. Averaged over 
several runs it looked like ConcurrentHashMap was slower but by less than 1ns 
per lookup on average. That seemed small enough not to worry about to me.
   
   In terms of special handling of UTF-8 my plan was only to pre-load the cache 
for UTF-8 and ISO-8859-1. I thought about adding other charsets but given 
ISO-8859-1 is the spec default and nearly everyone uses UTF-8 those seemed like 
the best place to start. Anything else I could think of just added more 
complexity and reduced performance.
   
   I'm currently leaning towards applying this after the next 9.0.x tag so 
there is still plenty of time for folks to review and suggest improvements.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to