6834805: Improve jar -C performance

Store "-C" directories in a HashSet, not List, to remove duplicates

Reviewed-by: sherman
This commit is contained in:
Jeremy Manson 2009-06-22 20:47:51 -07:00 committed by Martin Buchholz
parent 3c65bb6343
commit 7c01613569

View File

@ -56,7 +56,7 @@ class Main {
Set<File> entries = new LinkedHashSet<File>();
// Directories specified by "-C" operation.
List<String> paths = new ArrayList<String>();
Set<String> paths = new HashSet<String>();
CRC32 crc32 = new CRC32();
/*