summaryrefslogtreecommitdiff
path: root/tools
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
commit499a88fc4f09cd49e82143ef218496c324a900be (patch)
tree573a5f1456af48cb25dc31fcbfbab6bcf18a9c67 /tools
parentf0df88fd2775f37e023ad628ec7d35a082394b6b (diff)
downloadserverdata-499a88fc4f09cd49e82143ef218496c324a900be.tar.gz
serverdata-499a88fc4f09cd49e82143ef218496c324a900be.tar.bz2
serverdata-499a88fc4f09cd49e82143ef218496c324a900be.tar.xz
serverdata-499a88fc4f09cd49e82143ef218496c324a900be.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.
Diffstat (limited to 'tools')
-rw-r--r--tools/Purger.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/Purger.java b/tools/Purger.java
index 115847e6..51134383 100644
--- a/tools/Purger.java
+++ b/tools/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