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

ip2region 2.8.0 发布 - 增加 lua/python xdb 查询客户端

日期:2022-07-12点击:497

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

ip2region 2.8.0  具体更新如下:

1、增加 lua xdb 查询客户端实现:https://gitee.com/lionsoul/ip2region/tree/master/binding/lua

默认的 bench 测试结果如下(建议使用 lua_c 代替 lua,查询性能不是一个数量级的):

 ➜ lua git:(master) lua bench_test.lua --db=../../data/ip2region.xdb --src=../../data/ip.merge.txt --cache-policy=vectorIndex Bench finished, {cachePolicy: vectorIndex, total: 3417955, took: 31.000 s, cost: 7.607 μs/op}

2、增加 python 查询客户端实现:https://gitee.com/lionsoul/ip2region/tree/master/binding/python

默认的 bench 测试结果如下:

 ➜ python git:(master) python3 bench_test.py --db=../../data/ip2region.xdb --src=../../data/ip.merge.txt --cache-policy=vectorIndex Bench finished, {cachePolicy: vectorIndex, total: 3417955, took: 29.55 s, cost: 0.0081 ms/op}

3、golang maker 和 searcher 优化。

4、java xdb searcher 优化,maven 版本为 2.6.4:

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

 

资源下载地址:

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

2、Github:https://github.com/lionsoul2014/ip2region/tree/v2.8.0

原文链接:https://www.oschina.net/news/202654/ip2region-2-8-0-released
关注公众号

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

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

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

文章评论

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

文章二维码

扫描即可查看该文章

点击排行

推荐阅读

最新文章