mirror of
https://github.com/openjdk/jdk.git
synced 2026-05-20 02:17:53 +00:00
6834805: Improve jar -C performance
Store "-C" directories in a HashSet, not List, to remove duplicates Reviewed-by: sherman
This commit is contained in:
parent
3c65bb6343
commit
7c01613569
@ -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();
|
||||
/*
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user