Conversation
|
@max-ipinfo extracted CSV/TSV/JSON exports to dedicated type exporter interface {
WriteRecord(result maxminddb.Result) error
Flush() error
}Also simplified a little the JSON logic. It's a bit slower (15s -> 24s) but still much faster than the current version. |
Just curious. Why would moving it to an |
|
Oh sorry, I was unclear 😄 It's not the interface but the JSON simplification that slows down things a bit. Instead of manually writing |
Make use of the new v2 API (#47) to cache decoded and serialized MMDB values.
Testing on a 1GB MMDB file:
@max-ipinfo this is the raw Claude output which I might cleanup a bit, but it seems to work as expected.