increased LruCache for unicode script detection

This commit is contained in:
Daniel Gultsch 2018-03-19 13:32:32 +01:00
parent 11136f939e
commit 0f97b44e9f

View file

@ -56,7 +56,7 @@ import rocks.xmpp.addr.Jid;
public class IrregularUnicodeDetector {
private static final Map<Character.UnicodeBlock, Character.UnicodeBlock> NORMALIZATION_MAP;
private static final LruCache<Jid, PatternTuple> CACHE = new LruCache<>(100);
private static final LruCache<Jid, PatternTuple> CACHE = new LruCache<>(4096);
static {
Map<Character.UnicodeBlock, Character.UnicodeBlock> temp = new HashMap<>();