您的位置:首页 > IT > 正文

ip2region 2.11.1 发布 - 开源 IP 数据管理框架和定位库

来源:开源中国     时间:2023-02-06 11:18:30

ip2region (2.0 - xdb) 是一个离线的 IP 数据管理框架和定位库,支持亿级别的 IP 断管理,10 微秒级别的查询性能,提供了很多主流编程语言的 xdb 数据格式的生成和查询实现。


(资料图片)

ip2region 2.10.0 更新如下:

1、增加 erlang binding 实现:https://github.com/lionsoul2014/ip2region/tree/master/binding/erlang

默认的 bench 测试结果如下:

$ cd benchmarks/$ sh xdb-benchmark.sh===> Verifying dependencies...===> Analyzing applications...===> Compiling ip2regionErlang/OTP 24 [erts-12.3.2.2] [source] [64-bit] [smp:2:2] [ds:2:2:10] [async-threads:1] [jit]...search from file:ip count:683844,total time: 28.201699s,search 24248.326315375536 times per second,use 41.23995969841075 micro second per searchsearch from cache:ip count:683844,total time: 0.671801s,search 1017926.4395259906 times per second,use 0.9823892583688677 micro second per searchbenchmark test finish

2、优化 python binding maker 数据检测的实现:https://github.com/lionsoul2014/ip2region/pull/286

解析ip段出错时,抛出异常结束程序,方便查找问题。

3、修复 java binding 的 getInt2 实现的 bug:https://github.com/lionsoul2014/ip2region/issues/287

当 region 信息超过 一定长度后会触发这个 bug 导致查询读取的 region 信息不完整,最新 maven 地址:

    org.lionsoul    ip2region    2.7.0

ip2region 2.11.1 下载地址:

1、Gitee:https://gitee.com/lionsoul/ip2region/tree/v2.11.1

2、Github:https://github.com/lionsoul2014/ip2region/releases/tag/v2.11.1

相关文章