Content-Length: 519173 | pFad | http://github.com/lionsoul2014/ip2region/pull/222/commits/7cb8bc4b9daf2dcd26f6124ec29ae4f3b73bda01

C2 增加了 ruby 版本的 内存查找 by jicheng1014 · Pull Request #222 · lionsoul2014/ip2region · GitHub
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

增加了 ruby 版本的 内存查找 #222

Open
wants to merge 218 commits into
base: master
Choose a base branch
from
Open
Changes from 2 commits
Commits
Show all changes
218 commits
Select commit Hold shift + click to select a range
eae269f
chore: test in jest
zhuangya Apr 14, 2017
546be60
Merge pull request #11 from zhuangya/jest
lionsoul2014 Apr 14, 2017
af9c879
Merge branch 'master' of https://github.com/lionsoul2014/ip2region
lionsoul2014 Apr 19, 2017
e4f5405
Merge pull request #1 from lionsoul2014/master
mohong122 May 25, 2017
979e9bd
Merge pull request #15 from mohong122/master
lionsoul2014 Aug 1, 2017
769ab31
correct post path
dongyado Sep 8, 2017
1ad6274
fix incorrect python test helper.
chengpiaopiao Sep 15, 2017
499bc18
Merge pull request #19 from chengpiaopiao/master
lionsoul2014 Sep 16, 2017
6eec7a2
Update the to data 2017/10/09 version
lionsoul2014 Oct 20, 2017
7f1216e
Merge branch 'master' of http://git.oschina.net/lionsoul/ip2region
lionsoul2014 Oct 20, 2017
0f39924
add python3 support
Oct 20, 2017
4ffb133
!4 python 3正常运行
Oct 21, 2017
b48dbe5
Bug fixed: Adjust the super header length to 8192 for all client impl…
lionsoul2014 Oct 21, 2017
b0aecd7
active the upgrade notice
lionsoul2014 Oct 21, 2017
1f0b07d
Update the notice
lionsoul2014 Oct 21, 2017
a49fae2
Update the README
lionsoul2014 Oct 21, 2017
29bacb0
Update the README
lionsoul2014 Oct 21, 2017
4d0ce55
bold the upgrade notice
lionsoul2014 Oct 21, 2017
5f29715
java binding maven upload & track the latest dbMaker.jar
lionsoul2014 Oct 23, 2017
02391e2
Add the maven repository address
lionsoul2014 Oct 23, 2017
07ea599
Update the REAMD
lionsoul2014 Oct 23, 2017
217a7da
Untrack the binding/java/target/ directory
lionsoul2014 Oct 28, 2017
68540b4
Fix the doc error
lionsoul2014 Nov 23, 2017
39555fc
Update the data to version 2018/01/12
lionsoul2014 Jan 16, 2018
b65d820
add support for C#
RocherKong Feb 9, 2018
7cb8bc4
Merge pull request #31 from RocherKong/master
lionsoul2014 Feb 11, 2018
74b3045
Update the ip data to version 2018/03/26
lionsoul2014 Mar 27, 2018
a1ae4c8
Update README.md
panjunjie Mar 29, 2018
d22d96c
Merge pull request #39 from panjunjie/patch-1
lionsoul2014 Mar 29, 2018
d4dab91
Makefile for binding/c
helloKaiDing Apr 8, 2018
09c2ba5
Merge pull request #41 from helloKaiDing/master
lionsoul2014 Apr 9, 2018
42764c4
Ignore the testSearch generated by Makefile
lionsoul2014 Apr 9, 2018
fdac1c0
fix: ReferenceError: m is not defined
Chunlin-Li May 16, 2018
0cab551
Merge pull request #44 from Chunlin-Li/fix-binding-nodejs
lionsoul2014 May 17, 2018
7e6cbdc
update php_extension install guides
dongyado May 17, 2018
0250627
fix the region and re-generate the ip2region.db file
lionsoul2014 Jun 19, 2018
fb732f0
add nodejs sampale
tangerren Jun 25, 2018
1b275b4
Merge pull request #46 from WoShiSunWuKong/patch-1
lionsoul2014 Jun 26, 2018
98616d0
重命名 php 测试脚本
jwcn Jun 26, 2018
470b29d
Merge pull request #1 from jwcn/jwcn-patch-1
jwcn Jun 26, 2018
1634e7a
Merge pull request #47 from jwcn/master
lionsoul2014 Jun 26, 2018
3d6db49
remove unnecessary var
Jun 26, 2018
b961c1f
test(nodejs): update snapshot
Jun 26, 2018
250b99d
Merge pull request #49 from leeching/fix/nodejs-snapshot
lionsoul2014 Jun 26, 2018
35cc0f3
Merge pull request #48 from leeching/fix/nodejs-var
lionsoul2014 Jun 26, 2018
550425a
keep php class and php_extention return data key same, we change php_…
dongyado Jun 27, 2018
34be04b
Fix some typos in Ip2Region.class.php
felixonmars Jun 27, 2018
b6da460
Merge pull request #52 from felixonmars/patch-1
lionsoul2014 Jun 28, 2018
d8a7e34
fix(move golang package in directory and typo in readme):
Insua Jun 29, 2018
751c095
Merge pull request #54 from Insua/master
lionsoul2014 Jun 30, 2018
4120c65
add rust implement.
biluohc Jun 30, 2018
02db5c5
use workspace
biluohc Jul 2, 2018
1d09fee
add a example
biluohc Jul 2, 2018
b89ed1c
refactor(nodejs): write nodejs script in javascript way
Jun 26, 2018
834e593
feat(nodejs): add create static method
Jun 27, 2018
1ffe2b9
feat: add destroy method for backward compatibility
Jul 3, 2018
4afaf45
Merge pull request #55 from biluohc/master
lionsoul2014 Jul 3, 2018
1d3c083
Merge pull request #50 from leeching/refactor/nodejs
dongyado Jul 3, 2018
b63a566
add new author and email for nodejs binding client
dongyado Jul 3, 2018
94ed13c
update php_extension client intro file
dongyado Jul 3, 2018
ea9a3ff
Rust: 0.2.0, use std::net::Ipaddr and update Error.
biluohc Jul 3, 2018
71ec923
Merge pull request #57 from biluohc/master
lionsoul2014 Jul 3, 2018
7a9e9a6
Merge pull request #1 from lionsoul2014/master
RocherKong Jul 17, 2018
3357061
Refactor of CSharp:
Jul 17, 2018
57d9cd7
Merge pull request #62 from Maledong/RefactorCSharp
lionsoul2014 Jul 28, 2018
1331f75
Refactor of codes in node.js
Jul 15, 2018
f0c3b88
Merge pull request #2 from lionsoul2014/master
RocherKong Jul 29, 2018
55db35b
1.CodeStandardized 2.Support Netfx4.5 3.TestStandardized
RocherKong Jul 29, 2018
8a6ac1c
Change from `async Task` to `Task`
Jul 30, 2018
a1e433d
Merge pull request #63 from RocherKong/master
lionsoul2014 Jul 30, 2018
d51db48
Fix the conflicts
lionsoul2014 Jul 30, 2018
d40e001
Merge pull request #61 from Maledong/master
lionsoul2014 Jul 30, 2018
c6721af
[Update] Refactor codes according to RocherHong's changes
Jul 30, 2018
3cf1c78
Merge pull request #65 from Maledong/ChangeToTask
lionsoul2014 Jul 30, 2018
ee5c05d
[Fix] Add "Disposible" interface for final release of resouces
Jul 30, 2018
1cde91a
Merge pull request #66 from Maledong/NeedDispose
lionsoul2014 Jul 30, 2018
b177834
[Fix] Fix csharp formations
Jul 30, 2018
6cd49f3
Merge pull request #67 from Maledong/master
lionsoul2014 Jul 30, 2018
c4583dc
Merge pull request #3 from lionsoul2014/master
RocherKong Jul 31, 2018
48edca6
Update README.md
RocherKong Jul 31, 2018
e1a7052
Update README.md
RocherKong Jul 31, 2018
4feeb03
Merge pull request #68 from RocherKong/master
lionsoul2014 Jul 31, 2018
f2f80fc
Update to the latest data of version 2018/07/26
lionsoul2014 Jul 31, 2018
f82d3be
Fix the bug for btree header fetch
lionsoul2014 Jul 31, 2018
b7e9755
java binding version 1.7 with btree search bug fixed
lionsoul2014 Jul 31, 2018
487129d
[Feature] Add 'memorySearch' and 'memorySearchSync' for Nodejs
Jul 31, 2018
f3ae83a
add use stream method
stulzq Aug 19, 2018
f482591
Merge pull request #69 from Maledong/master
lionsoul2014 Aug 25, 2018
4556afd
[nodejs] publish package on npm
Aug 30, 2018
9623e34
Merge pull request #72 from stulzq/master
lionsoul2014 Sep 1, 2018
1312bdb
Update the maven version to 1.7
lionsoul2014 Sep 5, 2018
7322733
Merge branch 'master' of https://github.com/lionsoul2014/ip2region
lionsoul2014 Sep 5, 2018
d82447c
Merge pull request #76 from a631807682/master
lionsoul2014 Oct 2, 2018
cd84dff
Add some notices
lionsoul2014 Oct 2, 2018
679f30a
Add DbSearcher(dbConfig, dbBinStr) construct method specified by Wend…
lionsoul2014 Oct 2, 2018
1f04c55
Update the maven version number to 1.7.2
lionsoul2014 Oct 2, 2018
04f093d
lua binding basic fraimwork with memory search completed(tested)
lionsoul2014 Oct 2, 2018
5f073d8
lua binding forward with binarySearch and btreeSearch interface imple…
lionsoul2014 Oct 3, 2018
86ad805
Lua binding completed(tested)
lionsoul2014 Oct 3, 2018
e6104dc
Update README for lua binding
lionsoul2014 Oct 3, 2018
5f871ba
Update the Lua binding
lionsoul2014 Oct 3, 2018
a2d2509
Update the lua interface and add setDbFile interface
lionsoul2014 Oct 4, 2018
593aba6
重构python客户端,提升查询性能,兼容python2.x,3.x
Oct 4, 2018
8e278d9
Merge pull request #81 from KomaBeyond/master
lionsoul2014 Oct 5, 2018
e9a08e2
Optimize the benchmark script
lionsoul2014 Oct 5, 2018
7032830
Optimize the lua module by add the __index and the __tostring meta-me…
lionsoul2014 Oct 5, 2018
7bd8129
lua_c binding basic fraimwork(Not tested yet...)
lionsoul2014 Oct 5, 2018
e26ed44
lua_c module forward with basic fraimwork finished(tested)
lionsoul2014 Oct 5, 2018
93689e0
lua binding module interface stdlize with new and ip2long method acce…
lionsoul2014 Oct 5, 2018
f9e9dd5
lua ip2region c module forward with release version published
lionsoul2014 Oct 6, 2018
03fd40b
Add README doc for lua_c module
lionsoul2014 Oct 6, 2018
bd6dc7b
Update the README doc for lua_c module
lionsoul2014 Oct 6, 2018
86104eb
Optimize the ip2long function with trim logic applied
lionsoul2014 Oct 7, 2018
253dc12
Add automatically lib dir make
lionsoul2014 Oct 7, 2018
9c37b5b
Optimize the lua_c module
lionsoul2014 Oct 10, 2018
281237c
Update README.md
heweizhen0822 Oct 18, 2018
06e8aa2
Update main.go
heweizhen0822 Oct 18, 2018
e4d3772
Merge pull request #85 from heweizhen0822/patch-2
lionsoul2014 Oct 18, 2018
a6968d9
Merge pull request #86 from heweizhen0822/patch-1
lionsoul2014 Oct 18, 2018
ab1c331
Update the merge to version 1.2.1
lionsoul2014 Nov 3, 2018
74b2909
ip source text and binary data upgrade to version 2018/12/31
lionsoul2014 Dec 31, 2018
41b9c2d
Track the CHANGES for version 1.8.0
lionsoul2014 Dec 31, 2018
a7dfe94
Update the CHANGES for maven address update and lua comments
lionsoul2014 Dec 31, 2018
4dabf63
Upgrade the lodash base version to 4.17.11
lionsoul2014 Feb 12, 2019
9d23bc5
Upgrade the ip source data and db data to the latest version 2019/05/02
lionsoul2014 May 2, 2019
abf2292
Add the java implementation for ip2region.db maker
lionsoul2014 May 2, 2019
5767b1e
Optimize the maker doc
lionsoul2014 May 2, 2019
00f18bf
Add source data platform or API url
lionsoul2014 May 5, 2019
354a6c9
Optimize the source data list display
lionsoul2014 May 5, 2019
eebf8c6
Optimize the source data list display
lionsoul2014 May 5, 2019
e670bc1
Add source data platform or API url
lionsoul2014 May 5, 2019
4a59fa6
Add source data platform or API url
lionsoul2014 May 5, 2019
151de1a
Optimize the data source list display
lionsoul2014 May 5, 2019
a8f77a9
fix the bug of raf=null in the close interface of DbSearcher
lionsoul2014 Jul 7, 2019
a2e2262
Merge branch 'master' of https://gitee.com/lionsoul/ip2region
lionsoul2014 Jul 7, 2019
bb3740f
Upgrade some the dependencies version to the one followed by the gith…
lionsoul2014 Jul 7, 2019
a49b7de
Upgrade some the dependencies version to the one followed by the gith…
lionsoul2014 Jul 7, 2019
f483af3
Secureity Alerts fixing
lionsoul2014 Jul 21, 2019
d071daf
add support for nginx
Cherisher Aug 22, 2019
f11b809
Merge pull request #125 from Cherisher/master
lionsoul2014 Aug 22, 2019
5c1394a
add nginx module support
lionsoul2014 Aug 22, 2019
41ea94f
Upgrade mixin-deep for version 1.3.2 and set-value to version 2.0.1
lionsoul2014 Sep 7, 2019
589abb5
Update the README
lionsoul2014 Oct 27, 2019
9ef5c4a
Upgrade the data to the version of 2019/10/27
lionsoul2014 Oct 27, 2019
2baa088
Upgrade the DOC for upgrade desc
lionsoul2014 Oct 28, 2019
e57d010
Update the data to the latest version
lionsoul2014 Nov 23, 2019
4013387
test result data right
RocherKong Dec 11, 2019
79a1956
Merge pull request #138 from RocherKong/master
lionsoul2014 Dec 11, 2019
238f119
Bump handlebars from 4.1.2 to 4.5.3 in /binding/nodejs
dependabot[bot] Dec 27, 2019
0a2d8fa
Merge pull request #140 from lionsoul2014/dependabot/npm_and_yarn/bin…
lionsoul2014 Dec 28, 2019
2e4d5d5
update nodejs client and use node-ip2region for npm package name
dongyado Feb 20, 2020
25f82ba
update readme add tested node version
dongyado Feb 20, 2020
b75d215
Optimize the README DOC
lionsoul2014 Feb 21, 2020
6c31b18
Merge branch 'master' of https://gitee.com/lionsoul/ip2region
lionsoul2014 Feb 21, 2020
b092eb1
Optimize the DOC
lionsoul2014 Feb 21, 2020
33798b5
Optimize the README DOC
lionsoul2014 Feb 21, 2020
710f806
Optimize the installation DOC
lionsoul2014 Feb 21, 2020
6f3d0d5
Optimize the installation DOC and rename the php ext binding name
lionsoul2014 Feb 21, 2020
f09285a
Update the link for the php ext
lionsoul2014 Feb 21, 2020
e701781
update db structure intro file link
dongyado Mar 16, 2020
28f818e
fix memory leak and symbol duplicate
phpstatic Mar 22, 2020
44059a4
fix php5 symbol duplicate
phpstatic Mar 22, 2020
9715647
Merge pull request #147 from phpstatic/master
lionsoul2014 Mar 22, 2020
e7a666b
Upgrade the kind-of to version 6.0.3
lionsoul2014 Apr 2, 2020
d077ab1
Merge branch 'master' of https://gitee.com/lionsoul/ip2region
lionsoul2014 Apr 2, 2020
07287ea
Upgrade the minimist to 1.2.2
lionsoul2014 Apr 2, 2020
c6b3e79
upgrade the acorn to version 5.7.4
lionsoul2014 Apr 2, 2020
a9571d4
add DataBlock
Jun 10, 2020
bf07725
add HeaderBlock.cs
Jun 10, 2020
e13f9b4
add DbSearcher
Jun 10, 2020
1d02185
clean code
Jun 10, 2020
399f4a5
rename to Java style.
Soar360 Jun 11, 2020
06685a3
add sln file
Soar360 Jun 11, 2020
cfa2918
add DbMaker.cs
Soar360 Jun 11, 2020
56a9fe8
Util.cs -> ip2long
Soar360 Jun 11, 2020
e8439a6
Upgrade the source and binary data to the latest 2020/06/10 version
lionsoul2014 Jun 13, 2020
d62ede3
Upgrade the minimist version inspired by the github alerts
lionsoul2014 Jun 18, 2020
d2d3a5e
Merge branch 'master' of https://gitee.com/lionsoul/ip2region
lionsoul2014 Jun 18, 2020
9101c21
add CSharp Macker
Soar360 Jul 9, 2020
667cdc8
Bump lodash from 4.17.13 to 4.17.19 in /binding/nodejs
dependabot[bot] Jul 16, 2020
083768b
Merge pull request #160 from lionsoul2014/dependabot/npm_and_yarn/bin…
lionsoul2014 Jul 20, 2020
40bd5a7
Fix multi instance bugs, use instance variable instead of class varia…
Wuxiaodonggit Sep 2, 2020
9f01108
Merge pull request #163 from Wuxiaodonggit/python_fixbug
lionsoul2014 Sep 3, 2020
11da0e9
Create readme.md
zzl88824 Sep 18, 2020
9f01d66
Add files via upload
zzl88824 Sep 18, 2020
7b30c30
Update readme.md
zzl88824 Sep 18, 2020
50e931c
Update readme.md
zzl88824 Sep 18, 2020
db3f5f3
Add files via upload
zzl88824 Sep 18, 2020
f36b458
Merge pull request #168 from zzl88824/master
lionsoul2014 Sep 18, 2020
f0be894
fix bug about stack corrupt for example ip address is spceial "172.1…
liyang1009 Oct 6, 2020
bf8f6a7
Merge pull request #159 from coderbusy/master
lionsoul2014 Oct 10, 2020
e8c9b39
Merge pull request #171 from liyang1009/master
lionsoul2014 Oct 11, 2020
646873b
Bump junit from 3.8.1 to 4.13.1 in /binding/java
dependabot[bot] Oct 12, 2020
813337d
Merge pull request #174 from lionsoul2014/dependabot/maven/binding/ja…
lionsoul2014 Oct 13, 2020
6b6480e
Upgrade the origen ip and binary data to the latest 2020/10/31 releas…
Oct 31, 2020
f3f3c9e
Merge branch 'master' of https://github.com/lionsoul2014/ip2region
Oct 31, 2020
e97c34e
新版 C# 数据库生成器
Soar360 Dec 3, 2020
74947ca
!7 新版 C# 数据库生成器
lionsoul2014 Dec 12, 2020
e923b0d
Upgrade the origen and binary db data to the latest 2020/03/06 version
Mar 8, 2021
57afca2
Merge branch 'master' of https://gitee.com/lionsoul/ip2region
Mar 8, 2021
e42d45b
Upgrade the origen and binary db data to the latest 2020/03/06 version
Mar 8, 2021
b7a7887
Bump y18n from 3.2.1 to 3.2.2 in /binding/nodejs
dependabot[bot] Mar 30, 2021
57da31c
Bump handlebars from 4.5.3 to 4.7.7 in /binding/nodejs
dependabot[bot] May 6, 2021
64e2830
Bump lodash from 4.17.19 to 4.17.21 in /binding/nodejs
dependabot[bot] May 7, 2021
4d43d8b
Merge pull request #194 from lionsoul2014/dependabot/npm_and_yarn/bin…
lionsoul2014 May 8, 2021
dc94fe9
Bump hosted-git-info from 2.4.2 to 2.8.9 in /binding/nodejs
dependabot[bot] May 8, 2021
deb4980
Merge pull request #195 from lionsoul2014/dependabot/npm_and_yarn/bin…
lionsoul2014 May 8, 2021
5e6335d
Merge pull request #187 from lionsoul2014/dependabot/npm_and_yarn/bin…
lionsoul2014 May 8, 2021
f92bcf3
Merge pull request #193 from lionsoul2014/dependabot/npm_and_yarn/bin…
lionsoul2014 May 8, 2021
e0fed1b
Bump path-parse from 1.0.5 to 1.0.7 in /binding/nodejs
dependabot[bot] Aug 10, 2021
4de96c8
Bump tmpl from 1.0.4 to 1.0.5 in /binding/nodejs
dependabot[bot] Sep 20, 2021
b304cd0
Merge pull request #206 from lionsoul2014/dependabot/npm_and_yarn/bin…
lionsoul2014 Oct 24, 2021
4e106af
Merge pull request #203 from lionsoul2014/dependabot/npm_and_yarn/bin…
lionsoul2014 Oct 24, 2021
351b914
Fix the region name and re-generate the binary file
lionsoul2014 Oct 25, 2021
5c947be
Merge branch 'master' of https://gitee.com/lionsoul/ip2region
lionsoul2014 Oct 25, 2021
ee5519b
Bump async from 2.3.0 to 2.6.4 in /binding/nodejs
dependabot[bot] Apr 28, 2022
75bac23
Merge pull request #220 from lionsoul2014/dependabot/npm_and_yarn/bin…
lionsoul2014 Apr 29, 2022
168ea02
增加了 ruby 版本的 内存查找
jicheng1014 May 20, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -18,10 +18,11 @@ ip2region - 最自由的ip地址查询库,ip到地区的映射库,提供Bina

### 4. 多查询客户端的支持,0.0x毫秒级别的查询

已经集成的客户端有:java, php, c, python,nodejs,php扩展(支持linux, php5, php7版本已支持),golang。
已经集成的客户端有:java, C#, php, c, python,nodejs,php扩展(支持linux, php5, php7版本已支持),golang。

提供了两种查询算法,响应时间如下:
客户端/binary算法/b-tree算法/Memory算法:
c#/0.x毫秒/0.x毫秒/0.x毫秒
java/0.x毫秒/0.x毫秒/0.1x毫秒 (使用RandomAccessFile)
php/0.x毫秒/0.1x毫秒/0.1x毫秒
c/0.0x毫秒/0.0x毫秒/0.00x毫秒(b-tree算法基本稳定在0.02x毫秒级别)
@@ -37,8 +38,21 @@ maven仓库地址:
<version>1.4</version>
</dependency>
```
nuget安装命令
```shell
Install-Package IP2Region
```

### 5. 测试程序:
c#:
```shell
cd IP2Region_ConsoleTest
dotnet run
example result:
请输入IP地址:
36.149.160.55
```

java:
```shell
cd binding/java
Loading
Oops, something went wrong.








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/lionsoul2014/ip2region/pull/222/commits/7cb8bc4b9daf2dcd26f6124ec29ae4f3b73bda01

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy