From 498038d2413f5f809c67f56b4fd7f2db6a96bc13 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. --- Purger.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 activeAccounts = new HashSet(); File folder = new File(args[0]); // Do some sanity checking -- cgit v1.2.3-70-g09d2