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:
gojomo
2009-07-28 00:48:36 +00:00
parent 917dfc2bd3
commit 4cd9eb2e41
@@ -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
}
}