mirror of
https://github.com/internetarchive/heritrix3.git
synced 2026-11-15 10:20:47 +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:
1 parent
917dfc2bd3
commit
4cd9eb2e41
1 file changed
+5
-1
@@ -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