ip2region 2.10.0 发布,增加 c#/nodejs xdb 查询客户端

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

ip2region 2.10.0 更新如下:

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

默认的 bench 测试结果如下:

IP2Region.SearchTest.exe bench --db=../../../../../data/ip2region.xdb --src=../../../../../data/ip.merge.txt
Bench finished, {cachePolicy: vectorIndex, total: 3417955, took: 00:00:48.0082981, cost: 0 ms/op}

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

默认的 bench 测试结果如下:

➜  nodejs git:(v2.0-for-nodejs) ✗ node ./tests/bench.app.js
options: 
    dbPath: ../../data/ip2region.xdb
    src: ../../data/ip2region.xdb
    cache-policy: content

Bench finished, {cachePolicy: content, total: 3417955, took: 20.591887765s, cost: 6.02462225658325μs/op}

3、python xdb searcher 错误修复:https://gitee.com/lionsoul/ip2region/commit/268f659d788bd57810cb723ded2a5b0f64982d54

4、关闭 c/lua/java/go/php 的 buffer 相关函数的 handle。

java maven 地址如下:

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

ip2region 2.9.0 资源下载:

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

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

猜你喜欢

转载自www.oschina.net/news/205321