oschwald / maxminddb-golang

MaxMind DB Reader for Go
ISC License
615 stars 101 forks source link

add FastGetCountry func #108

Closed ahfuzhang closed 1 year ago

ahfuzhang commented 1 year ago

FastGetCountry: when we need country only, this func is 2.91 times faster than Lookup

oschwald commented 1 year ago

This is a general purpose MMDB reader. I have no plans to add special methods for any particular database type. I think something like #91 or the existing deserializer interface should allow for manual control over the decoding when necessary. I also would be open to some sort of path lookup method similar to what libmaxminddb provides.