summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2012-02-15 21:44:53 +0100
committerThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2012-02-16 22:56:43 +0100
commit498038d2413f5f809c67f56b4fd7f2db6a96bc13 (patch)
tree6a005dc05d7bf54f552d33950a84b5c2f61ee147
parent5a8ecb60b34d0dd95db088ab787fd836311f7074 (diff)
downloadtools-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.java2
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