Return-Path: Mailing-List: contact ant-dev-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list ant-dev@jakarta.apache.org Received: (qmail 74216 invoked from network); 14 Sep 2000 10:25:10 -0000 Received: from public.ndh.net (HELO public.ndh.com) (195.94.90.21) by locus.apache.org with SMTP; 14 Sep 2000 10:25:10 -0000 Received: from sbodewig.bost.de ([195.227.98.11]) by public.ndh.com (8.9.3/8.8.0) with ESMTP id MAA09193 for ; Thu, 14 Sep 2000 12:25:05 +0200 (MET DST) Received: (from bodewig@localhost) by sbodewig.bost.de (8.9.3/8.9.3) id MAA04955; Thu, 14 Sep 2000 12:25:05 +0200 X-Authentication-Warning: sbodewig.bost.de: bodewig set sender to bodewig@bost.de using -f To: ant-dev@jakarta.apache.org Subject: Re: DirectoryScanner Optimization Question References: <20000914101202.9121.qmail@web108.yahoomail.com> From: Stefan Bodewig Date: 14 Sep 2000 12:25:05 +0200 In-Reply-To: Diane Holt's message of "Thu, 14 Sep 2000 03:12:02 -0700 (PDT)" Message-ID: Lines: 15 User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Capitol Reef) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N >>>>> "DH" == Diane Holt writes: DH> I have 73 exclude names in one (it also has 30 include names) -- But you wouldn't benefit from an implementation that uses a Hashtable instead of a Vector at all. DirectoryScanner doesn't search for a pattern, it just walks through the list of patterns sequentially - something Hashtables won't do faster than Vectors. I didn't want to say DirectoryScanner couldn't be optimized, just storing the patterns inside a Hashtable won't help. Stefan