jain-sip icon indicating copy to clipboard operation
jain-sip copied to clipboard

Case Insensitive Header matching based in toLowerCase is so inneficient

Open jaimecasero opened this issue 9 years ago • 2 comments

Performance is degraded since case insensitive matching is be done through String.toLoweCase which makes a new copy in memory. A char by char comparison would be better, preventing copy operations....

jaimecasero avatar Dec 02 '15 13:12 jaimecasero

https://commons.apache.org/proper/commons-io/javadocs/api-2.4/org/apache/commons/io/IOCase.html this lib implements case insensitive operations

jaimecasero avatar Dec 02 '15 13:12 jaimecasero

we need to check the implementation and see if a char by char comparison would be more effective or not.

deruelle avatar Dec 02 '15 13:12 deruelle