mirror of
https://github.com/internetarchive/heritrix3.git
synced 2026-09-21 05:05:44 +00:00
Work for [HER-1654] suspicious Cookie bottlenecks: synchronization, growth
* Cookie.java
simple non-contending String compare (fixed similarly upstream in HttpClient;
see https://cwiki.apache.org/jira/browse/HTTPCLIENT-645 )
This commit is contained in:
@@ -482,7 +482,11 @@ public class Cookie extends NameValuePair implements Serializable, Comparator {
|
||||
return 1;
|
||||
}
|
||||
} else {
|
||||
return STRING_COLLATOR.compare(c1.getPath(), c2.getPath());
|
||||
// BEGIN IA/HERITRIX CHANGE
|
||||
// based on: https://cwiki.apache.org/jira/browse/HTTPCLIENT-645
|
||||
return c1.getPath().compareTo(c2.getPath());
|
||||
// return STRING_COLLATOR.compare(c1.getPath(), c2.getPath());
|
||||
// END IA/HERITRIX CHANGE
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user