From 499a88fc4f09cd49e82143ef218496c324a900be Mon Sep 17 00:00:00 2001 From: Thorbjørn Lindeijer Date: Wed, 15 Feb 2012 21:44:53 +0100 Subject: 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. --- tools/Purger.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools') 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 activeAccounts = new HashSet(); File folder = new File(args[0]); // Do some sanity checking -- cgit v1.2.3-60-g2f50