Return-Path: Delivered-To: apmail-cxf-dev-archive@www.apache.org Received: (qmail 99552 invoked from network); 29 Apr 2008 14:17:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 29 Apr 2008 14:17:27 -0000 Received: (qmail 81314 invoked by uid 500); 29 Apr 2008 14:17:27 -0000 Delivered-To: apmail-cxf-dev-archive@cxf.apache.org Received: (qmail 81280 invoked by uid 500); 29 Apr 2008 14:17:27 -0000 Mailing-List: contact dev-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list dev@cxf.apache.org Received: (qmail 81269 invoked by uid 500); 29 Apr 2008 14:17:27 -0000 Delivered-To: apmail-incubator-cxf-dev@incubator.apache.org Received: (qmail 81266 invoked by uid 99); 29 Apr 2008 14:17:27 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Apr 2008 07:17:27 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=FM_FAKE_HELO_VERIZON,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [206.46.252.40] (HELO vms040pub.verizon.net) (206.46.252.40) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Apr 2008 14:16:34 +0000 Received: from [192.168.75.184] ([216.57.144.65]) by vms040.mailsrvcs.net (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) with ESMTPA id <0K030076LBULZ7S0@vms040.mailsrvcs.net> for cxf-dev@incubator.apache.org; Tue, 29 Apr 2008 09:20:46 -0500 (CDT) Date: Tue, 29 Apr 2008 10:16:31 -0400 From: Fred Dushin Subject: HashHappy To: cxf-dev@incubator.apache.org Message-id: MIME-version: 1.0 (Apple Message framework v919.2) X-Mailer: Apple Mail (2.919.2) Content-type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-transfer-encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Is there a reason hashed collections are used, almost exclusively, in CXF? Even in cases where collections are predictably small, Hash(Maps| Sets) almost always win out over their sortable cousins in the java.util namespace, and this, even when the keys are sortable. Is there a technical reason for this? A personal preference? I've done some performance comparisons between the 2, and for small collections, the log(n) lookup doesn't make a difference at all. So for small collections, I'd think CXF might benefit from the relatively smaller memory footprint of sortable collections. We'd also benefit from more predictable behavior, as ordering is deterministic, with sortable collections. The same goes for ArrayLists vs LinkedLists, BTW. Just wondering... -Fred