optimize iplist

note: dict in chrome is very slow!