您现在的位置是:首页 > 文章详情

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

日期:2023-02-06点击:267

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 ip2region Erlang/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 search search from cache: ip count:683844, total time: 0.671801s, search 1017926.4395259906 times per second, use 0.9823892583688677 micro second per search benchmark 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 地址:

 <dependency> <groupId>org.lionsoul</groupId> <artifactId>ip2region</artifactId> <version>2.7.0</version> </dependency>

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

原文链接:https://www.oschina.net/news/227244
关注公众号

低调大师中文资讯倾力打造互联网数据资讯、行业资源、电子商务、移动互联网、网络营销平台。

持续更新报道IT业界、互联网、市场资讯、驱动更新,是最及时权威的产业资讯及硬件资讯报道平台。

转载内容版权归作者及来源网站所有,本站原创内容转载请注明来源。

文章评论

共有0条评论来说两句吧...

文章二维码

扫描即可查看该文章

点击排行

推荐阅读

最新文章