Re: IP to Country (#139)

From: “Simon Kröger” [email protected]

Ok, my script does not need any initialization, it uses the file
IpToCountry.csv exactly as downloaded.

Same here.

$ time ruby locate.rb 1.2.3.4 4.5.6.77 128.129.130.131 255.255.255.255
no country
US
US
ZZ

real 0m0.287s

time for 300 random IPs is:

real 0m1.187s