diff options
author | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2012-02-15 21:44:53 +0100 |
---|---|---|
committer | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2012-02-16 22:56:43 +0100 |
commit | 498038d2413f5f809c67f56b4fd7f2db6a96bc13 (patch) | |
tree | 6a005dc05d7bf54f552d33950a84b5c2f61ee147 | |
parent | 5a8ecb60b34d0dd95db088ab787fd836311f7074 (diff) | |
download | tools-498038d2413f5f809c67f56b4fd7f2db6a96bc13.tar.gz tools-498038d2413f5f809c67f56b4fd7f2db6a96bc13.tar.bz2 tools-498038d2413f5f809c67f56b4fd7f2db6a96bc13.tar.xz tools-498038d2413f5f809c67f56b4fd7f2db6a96bc13.zip |
Optimized the Purger
Use a Set rather than a Vector to store the active accounts, so that going
through the characters and removing those without an active account is a lot
faster.
-rw-r--r-- | Purger.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Purger.java b/Purger.java index 115847e..5113438 100644 --- a/Purger.java +++ b/Purger.java @@ -21,7 +21,7 @@ import java.util.*; int accounts = 0; int characters = 0; int deletedCharacters = 0; - Vector activeAccounts = new Vector(); + Set<String> activeAccounts = new HashSet<String>(); File folder = new File(args[0]); // Do some sanity checking |