Open lujiajing1126 opened 4 years ago
Could you please point us to the code in this repo that uses this API? Is it in the extractor?
Could you please point us to the code in this repo that uses this API? Is it in the extractor?
In the TextMap
implementation,
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.