|
@@ -18,13 +18,11 @@ import java.io.BufferedInputStream;
|
|
|
import java.io.File;
|
|
|
import java.io.FileFilter;
|
|
|
import java.io.FileInputStream;
|
|
|
-import java.util.Map;
|
|
|
import java.util.logging.Level;
|
|
|
import java.util.logging.Logger;
|
|
|
|
|
|
-import javolution.util.FastMap;
|
|
|
-
|
|
|
import com.l2jserver.Config;
|
|
|
+import com.l2jserver.gameserver.util.L2TIntObjectHashMap;
|
|
|
import com.l2jserver.gameserver.util.Util;
|
|
|
|
|
|
/**
|
|
@@ -35,7 +33,7 @@ public class HtmCache
|
|
|
{
|
|
|
private static Logger _log = Logger.getLogger(HtmCache.class.getName());
|
|
|
|
|
|
- private final Map<Integer, String> _cache;
|
|
|
+ private final L2TIntObjectHashMap<String> _cache;
|
|
|
|
|
|
private int _loadedFiles;
|
|
|
private long _bytesBuffLen;
|
|
@@ -47,10 +45,7 @@ public class HtmCache
|
|
|
|
|
|
private HtmCache()
|
|
|
{
|
|
|
- if (Config.LAZY_CACHE)
|
|
|
- _cache = new FastMap<Integer, String>().shared();
|
|
|
- else
|
|
|
- _cache = new FastMap<Integer, String>();
|
|
|
+ _cache = new L2TIntObjectHashMap<String>();
|
|
|
reload();
|
|
|
}
|
|
|
|