You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As is documented in the comments of MimeHeaders, each call of nextElement() has a complexity of O(n) with a comparison done with all previous elements to ensure the uniqueness.
Jetty has better performance since it uses HashSet to get a set of header keys.
I wonder if we could treat org.apache.catalina.connector.Request as a special case. A simple index-based iteration does improve the performance.
The text was updated successfully, but these errors were encountered:
As is documented in the comments of MimeHeaders, each call of
nextElement()
has a complexity of O(n) with a comparison done with all previous elements to ensure the uniqueness.Jetty has better performance since it uses
HashSet
to get a set of header keys.I wonder if we could treat
org.apache.catalina.connector.Request
as a special case. A simple index-based iteration does improve the performance.The text was updated successfully, but these errors were encountered: