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 | 499a88fc4f09cd49e82143ef218496c324a900be (patch) | |
tree | 573a5f1456af48cb25dc31fcbfbab6bcf18a9c67 /tools | |
parent | f0df88fd2775f37e023ad628ec7d35a082394b6b (diff) | |
download | classic-serverdata-499a88fc4f09cd49e82143ef218496c324a900be.tar.gz classic-serverdata-499a88fc4f09cd49e82143ef218496c324a900be.tar.bz2 classic-serverdata-499a88fc4f09cd49e82143ef218496c324a900be.tar.xz classic-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.java | 2 |
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 |