jain-sip
jain-sip copied to clipboard
Case Insensitive Header matching based in toLowerCase is so inneficient
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....
https://commons.apache.org/proper/commons-io/javadocs/api-2.4/org/apache/commons/io/IOCase.html this lib implements case insensitive operations
we need to check the implementation and see if a char by char comparison would be more effective or not.