聚合全网技术文章,根据你的阅读喜好进行个性推荐
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
评论删除后,数据将无法恢复
ip2region 2.8.0 发布 - 增加 lua/python xdb 查询客户端
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,查询性能不是一个数量级的):
2、增加 python 查询客户端实现:https://gitee.com/lionsoul/ip2region/tree/master/binding/python
默认的 bench 测试结果如下:
3、golang maker 和 searcher 优化。
4、java xdb searcher 优化,maven 版本为 2.6.4:
资源下载地址:
1、Gitee:https://gitee.com/lionsoul/ip2region/tree/v2.8.0
2、Github:https://github.com/lionsoul2014/ip2region/tree/v2.8.0