Commit Graph

354 Commits

Author SHA1 Message Date
Lion e58757ada5 require the local xdb_searcher.so and fix the bug for err check and print 2022-07-05 13:47:47 +08:00
Lion 100493ec11 update the version number to 2.6.3 2022-07-02 18:25:13 +08:00
Lion 14fc2c5de3 keep the original byte for self-define header 2022-07-02 18:15:54 +08:00
Lion e09c9b57b9 update the docs for vectorIndex/content buffer type and resource close 2022-07-02 18:07:17 +08:00
Lion fcc503c8d7 Add docs for compile/install/api and tests 2022-07-02 17:59:10 +08:00
Lion c1616fbca3 err checking the searcher create 2022-07-02 17:58:15 +08:00
Lion 59e5545d70 return the undefined the option 2022-07-02 17:35:01 +08:00
Lion f97e72c23e bench test script ready and bench test passed 2022-07-02 17:10:02 +08:00
Lion 089948ae02 search test is ready 2022-07-02 13:40:16 +08:00
Lion 4fa7aad302 optimize the api error return 2022-07-02 13:39:27 +08:00
Lion 90d80ed622 add type method and make the close duplicate call support 2022-07-02 11:50:44 +08:00
Lion a5eb2faf5b basic tests passed 2022-07-01 15:54:18 +08:00
Lion b949574af5 void * for all the close functions 2022-07-01 15:42:39 +08:00
厉害的花花 d827dbd472 Merge branch 'lionsoul2014:master' into python_dev 2022-07-01 13:36:02 +08:00
Lion 91f9efa107 wrap the header/vector/content buffer 2022-07-01 11:57:45 +08:00
Lion 8aa2ef71b3 Merge branch 'master' into lua_binding 2022-06-30 22:13:40 +08:00
Lion fa42e387a3 fix the doc errors reported by https://github.com/lionsoul2014/ip2region/pull/232 2022-06-30 22:10:24 +08:00
Lion dbb8e2b407 stdlize the print of Header stringify 2022-06-30 22:08:16 +08:00
Lion d819ff2047 optimize the args checking 2022-06-30 18:35:59 +08:00
Lion b8710c17d8 safely duplicate close 2022-06-30 18:34:14 +08:00
Lion 8ee41f4e1d impl lua c xdb searcher 2022-06-30 18:26:57 +08:00
厉害的花花 894fdc3924 增加 python 查询实现
Signed-off-by: 厉害的花花 <117415792@qq.com>
2022-06-30 14:33:48 +08:00
Lion 7325306a56 make all the db_path and vIndex/cBuffer args const 2022-06-30 11:55:41 +08:00
Lion fea3503f7b update the maven version to 2.6.2 and docs 2022-06-29 18:46:44 +08:00
Lion 905590aff5 optimize the var define 2022-06-29 18:44:50 +08:00
Lion 7942816fad update the docs 2022-06-29 17:52:43 +08:00
Lion fdedfcc0d8 some optimizations 2022-06-29 17:50:25 +08:00
Lion 68486ea679 some optimizations 2022-06-29 17:49:59 +08:00
Lion c5b45e0502 add api usage demo docs 2022-06-29 17:35:19 +08:00
Lion 7f9a9fd3a7 add search/bench test ReadMe docs 2022-06-29 15:28:14 +08:00
Lion 257c391912 add Makefile 2022-06-29 15:16:16 +08:00
Lion bcf12a41db xdb clang binding is ready with search/bench test passed 2022-06-29 15:03:32 +08:00
Lion 015a15f2e0 safe the type convertion 2022-06-29 09:47:09 +08:00
lion 417636d93c newline the error info print 2022-06-28 18:37:16 +08:00
lion cb03009ac4 fix the bug of content based read offset 2022-06-28 18:37:02 +08:00
lion 34c410998f xdb searcher and search test program are ready 2022-06-28 18:30:34 +08:00
lion e17add2d47 xdb search and bench test program 2022-06-28 17:48:19 +08:00
lion f642c54848 c style db path 2022-06-28 17:07:24 +08:00
lion f047a3d360 buffer load functions are ready 2022-06-28 16:28:16 +08:00
lion 2772ccb0ab search logical impl 2022-06-28 12:15:09 +08:00
lion 1810fe74d6 impl the search by string 2022-06-27 18:37:31 +08:00
lion bd065347b3 add the clang xdb searcher binding 2022-06-27 18:32:40 +08:00
Lion 73b8aa3789 bash comments 2022-06-24 15:50:35 +08:00
Lion 2790f818c7 xdb java searcher is ready 2022-06-24 15:28:12 +08:00
Lion 010674506e update the pom for maven release 2022-06-24 15:23:04 +08:00
Lion 3c8569152f optimize the php docs 2022-06-24 12:43:33 +08:00
Lion 3403b74e31 add doc for java binding 2022-06-24 12:41:35 +08:00
Lion 00b3b4c76d update the marks for xdb cached search 2022-06-24 12:24:16 +08:00
Lion deeb947ba1 update the version number to 2.6.0 2022-06-24 11:56:28 +08:00
Lion a0efcf0456 impl the bench test 2022-06-24 11:52:33 +08:00
Lion 5a8a22a01c count maybe 0 2022-06-24 11:52:06 +08:00
lion aca88673d6 store the costs first 2022-06-23 17:59:14 +08:00
lion 3b96003ca1 use the raw []byte as vectorIndex to reduce memory alloc 2022-06-23 17:56:28 +08:00
lion 670cf1dcb3 add java xdb searcher impl 2022-06-23 17:26:17 +08:00
lion 734ac597ea it should be the cols 2022-06-23 17:03:25 +08:00
lion 11df874b5d reduce the data copy for vectorIndex search with content cached 2022-06-23 15:03:18 +08:00
lion 5b058d2a8a optimize the bench average costs stats 2022-06-23 14:57:02 +08:00
lion 9659a920e9 content buffer directly as vectorIndex 2022-06-23 14:52:39 +08:00
lion ca6b26c53a remove the vectorIndex autoload for buffer based searcher to reduce memory usage 2022-06-23 11:42:28 +08:00
Lion a835d15d0a update docs 2022-06-22 19:23:03 +08:00
Lion ee1c22f932 add docs for php binding 2022-06-22 19:21:08 +08:00
Lion 7b7171c233 update the docs for cache-policy 2022-06-22 19:20:59 +08:00
Lion d482335ca2 add bench test script 2022-06-22 18:49:02 +08:00
Lion 431e42209c print the cache policy for bench 2022-06-22 18:48:06 +08:00
Lion fc843205d5 util test script to test all the utils functions 2022-06-22 18:06:50 +08:00
Lion bf0f413a22 xdb searcher util and tests 2022-06-22 17:36:01 +08:00
Lion b08e798e27 print the dataLen and dataPtr for debug 2022-06-22 15:59:29 +08:00
lion 6149b68a84 add php xdb searcher impl 2022-06-21 18:02:54 +08:00
lion 8e88caecab break for the undefine option 2022-06-21 18:02:40 +08:00
lion 59434d03c9 use the Header struct 2022-06-21 11:34:47 +08:00
lion 14badde79e add header mgr struct 2022-06-21 10:57:47 +08:00
lion 7eb4a5ba5e add copy right statement and author contact info 2022-06-21 10:21:37 +08:00
lion 08a4ad245d add cache-policy option desc 2022-06-20 22:12:21 +08:00
lion e59d71e316 add docs for cache searcher create 2022-06-20 21:45:59 +08:00
Lion 08b1656e02 add vectorIndex/Content cache policy impl 2022-06-20 15:14:33 +08:00
Lion 4b4984fce0 add Makefile and docs for golang xdb maker and binding 2022-06-19 19:07:03 +08:00
Lion 9cb3bbcb07 add load header func 2022-06-18 19:36:45 +08:00
Lion 059446caa7 add vector index and xdb content load util func 2022-06-18 19:29:24 +08:00
lion db4aa26547 update the command docs 2022-06-17 15:48:48 +08:00
lion be472cbbf7 Update the docs 2022-06-17 15:06:34 +08:00
lion 0b36cb947b rename pacakge to xdb and add SearchByStr impl 2022-06-17 14:45:16 +08:00
lion 985dabd51c add golang searcher binding 2022-06-17 14:18:44 +08:00
lion d746d5d4b2 init the v2.0 framework with v1.0 source kept 2022-06-16 16:27:56 +08:00
lion 1e2544cc57 archive the v1.0 - old db structure 2022-06-16 16:25:31 +08:00
dependabot[bot] 1b8d8598b1 Bump async from 2.3.0 to 2.6.4 in /binding/nodejs
Bumps [async](https://github.com/caolan/async) from 2.3.0 to 2.6.4.
- [Release notes](https://github.com/caolan/async/releases)
- [Changelog](https://github.com/caolan/async/blob/v2.6.4/CHANGELOG.md)
- [Commits](https://github.com/caolan/async/compare/v2.3.0...v2.6.4)

---
updated-dependencies:
- dependency-name: async
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-28 15:55:54 +00:00
Lion 5056f08b88 Merge pull request #203 from lionsoul2014/dependabot/npm_and_yarn/binding/nodejs/path-parse-1.0.7
Bump path-parse from 1.0.5 to 1.0.7 in /binding/nodejs
2021-10-24 09:48:41 +08:00
dependabot[bot] 7fee31c645 Bump tmpl from 1.0.4 to 1.0.5 in /binding/nodejs
Bumps [tmpl](https://github.com/daaku/nodejs-tmpl) from 1.0.4 to 1.0.5.
- [Release notes](https://github.com/daaku/nodejs-tmpl/releases)
- [Commits](https://github.com/daaku/nodejs-tmpl/commits/v1.0.5)

---
updated-dependencies:
- dependency-name: tmpl
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-09-20 23:38:34 +00:00
dependabot[bot] 2a221eae28 Bump path-parse from 1.0.5 to 1.0.7 in /binding/nodejs
Bumps [path-parse](https://github.com/jbgutierrez/path-parse) from 1.0.5 to 1.0.7.
- [Release notes](https://github.com/jbgutierrez/path-parse/releases)
- [Commits](https://github.com/jbgutierrez/path-parse/commits/v1.0.7)

---
updated-dependencies:
- dependency-name: path-parse
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-10 19:27:14 +00:00
Lion ea1e38c314 Merge pull request #193 from lionsoul2014/dependabot/npm_and_yarn/binding/nodejs/handlebars-4.7.7
Bump handlebars from 4.5.3 to 4.7.7 in /binding/nodejs
2021-05-08 09:40:43 +08:00
Lion 58d6fccfdc Merge pull request #187 from lionsoul2014/dependabot/npm_and_yarn/binding/nodejs/y18n-3.2.2
Bump y18n from 3.2.1 to 3.2.2 in /binding/nodejs
2021-05-08 09:40:30 +08:00
dependabot[bot] 0369816675 Bump hosted-git-info from 2.4.2 to 2.8.9 in /binding/nodejs
Bumps [hosted-git-info](https://github.com/npm/hosted-git-info) from 2.4.2 to 2.8.9.
- [Release notes](https://github.com/npm/hosted-git-info/releases)
- [Changelog](https://github.com/npm/hosted-git-info/blob/v2.8.9/CHANGELOG.md)
- [Commits](https://github.com/npm/hosted-git-info/compare/v2.4.2...v2.8.9)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-08 01:38:48 +00:00
dependabot[bot] 2b690b7f09 Bump lodash from 4.17.19 to 4.17.21 in /binding/nodejs
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.19 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.19...4.17.21)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-07 16:28:27 +00:00
dependabot[bot] 377b4e6029 Bump handlebars from 4.5.3 to 4.7.7 in /binding/nodejs
Bumps [handlebars](https://github.com/wycats/handlebars.js) from 4.5.3 to 4.7.7.
- [Release notes](https://github.com/wycats/handlebars.js/releases)
- [Changelog](https://github.com/handlebars-lang/handlebars.js/blob/master/release-notes.md)
- [Commits](https://github.com/wycats/handlebars.js/compare/v4.5.3...v4.7.7)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-06 21:46:24 +00:00
dependabot[bot] 7d69b3aed2 Bump y18n from 3.2.1 to 3.2.2 in /binding/nodejs
Bumps [y18n](https://github.com/yargs/y18n) from 3.2.1 to 3.2.2.
- [Release notes](https://github.com/yargs/y18n/releases)
- [Changelog](https://github.com/yargs/y18n/blob/master/CHANGELOG.md)
- [Commits](https://github.com/yargs/y18n/commits)

Signed-off-by: dependabot[bot] <support@github.com>
2021-03-30 14:25:51 +00:00
dependabot[bot] f65eb173b6 Bump junit from 3.8.1 to 4.13.1 in /binding/java
Bumps [junit](https://github.com/junit-team/junit4) from 3.8.1 to 4.13.1.
- [Release notes](https://github.com/junit-team/junit4/releases)
- [Changelog](https://github.com/junit-team/junit4/blob/main/doc/ReleaseNotes4.13.1.md)
- [Commits](https://github.com/junit-team/junit4/commits/r4.13.1)

Signed-off-by: dependabot[bot] <support@github.com>
2020-10-12 22:56:44 +00:00
liyang ea5bfb52e0 fix bug about stack corrupt for example ip address is spceial "172.16.107.7, Proxy:False, 210.3.213.69" 2020-10-06 21:55:21 +08:00
Zhao Zilong bafd7741a2 Add files via upload 2020-09-18 18:03:30 +08:00
Zhao Zilong f4aee793a8 Update readme.md 2020-09-18 17:59:13 +08:00
Zhao Zilong e5e31005ac Update readme.md 2020-09-18 17:58:31 +08:00
Zhao Zilong 5a5ae36b01 Add files via upload 2020-09-18 17:55:35 +08:00
Zhao Zilong b87e6029d6 Create readme.md 2020-09-18 17:54:17 +08:00
wuxiaodong a1ee7fd5e7 Fix multi instance bugs, use instance variable instead of class variable. 2020-09-02 17:26:01 +08:00
dependabot[bot] d58119db4b Bump lodash from 4.17.13 to 4.17.19 in /binding/nodejs
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.13 to 4.17.19.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.13...4.17.19)

Signed-off-by: dependabot[bot] <support@github.com>
2020-07-16 08:58:29 +00:00
lionsoul 5d29fe2f2a Upgrade the minimist version inspired by the github alerts 2020-06-18 08:53:20 +08:00
lionsoul b9b1d5a8c7 upgrade the acorn to version 5.7.4 2020-04-02 09:42:44 +08:00
lionsoul 068a7f48ed Upgrade the minimist to 1.2.2 2020-04-02 09:41:14 +08:00
lionsoul b46b168842 Merge branch 'master' of https://gitee.com/lionsoul/ip2region 2020-04-02 09:38:27 +08:00
lionsoul 247c09376b Upgrade the kind-of to version 6.0.3 2020-04-02 09:38:10 +08:00
PHP Static 5ea194bb22 fix php5 symbol duplicate 2020-03-22 11:43:46 +08:00
PHP Static fc80149d82 fix memory leak and symbol duplicate 2020-03-22 11:38:21 +08:00
lionsoul 89b80ef310 Optimize the installation DOC and rename the php ext binding name 2020-02-21 13:56:26 +08:00
lionsoul dbc05223fd Merge branch 'master' of https://gitee.com/lionsoul/ip2region 2020-02-21 13:36:35 +08:00
lionsoul ac86979872 Optimize the README DOC 2020-02-21 13:36:21 +08:00
dongyado ff535a79f4 update readme add tested node version 2020-02-20 16:57:50 +08:00
dongyado e33004f319 update nodejs client and use node-ip2region for npm package name 2020-02-20 12:58:56 +08:00
dependabot[bot] e7bbeb7919 Bump handlebars from 4.1.2 to 4.5.3 in /binding/nodejs
Bumps [handlebars](https://github.com/wycats/handlebars.js) from 4.1.2 to 4.5.3.
- [Release notes](https://github.com/wycats/handlebars.js/releases)
- [Changelog](https://github.com/wycats/handlebars.js/blob/master/release-notes.md)
- [Commits](https://github.com/wycats/handlebars.js/compare/v4.1.2...v4.5.3)

Signed-off-by: dependabot[bot] <support@github.com>
2019-12-27 11:39:13 +00:00
lionsoul 728c04d633 Merge pull request #138 from RocherKong/master
add data result availability checking
2019-12-11 17:20:05 +08:00
rocher 23609e81f5 test result data right 2019-12-11 16:59:44 +08:00
lionsoul b23cb7fdf6 Upgrade mixin-deep for version 1.3.2 and set-value to version 2.0.1 2019-09-07 10:36:36 +08:00
lionsoul 3f4f8a4051 add nginx module support 2019-08-22 10:35:26 +08:00
Cherisher 7bdea3d171 add support for nginx 2019-08-22 09:02:09 +08:00
lionsoul 6b50224fd7 Security Alerts fixing 2019-07-21 17:51:07 +08:00
lionsoul 4f52d8c4ef Upgrade some the dependencies version to the one followed by the github alerts 2019-07-07 11:33:31 +08:00
lionsoul 7e81847d01 Upgrade some the dependencies version to the one followed by the github alerts 2019-07-07 11:18:21 +08:00
lionsoul ebea2a1467 fix the bug of raf=null in the close interface of DbSearcher 2019-07-07 11:09:48 +08:00
lionsoul 008d82eee0 Upgrade the lodash base version to 4.17.11 2019-02-12 17:39:11 +08:00
lionsoul 8688ae3ecb Update the merge to version 1.2.1 2018-11-03 11:05:48 +08:00
lionsoul 0809f9eda8 Merge pull request #86 from heweizhen0822/patch-1
Update README.md
2018-10-18 20:59:29 +08:00
heweizhen0822 87734a614f Update main.go
github.com/mohong122/ip2region/binding/golang/ip2region 并没有子包ip2region 需要改成 github.com/lionsoul2014/ip2region/binding/golang/ip2region
2018-10-18 10:34:33 +08:00
heweizhen0822 94594542f7 Update README.md
github.com/mohong122/ip2region/binding/golang/ip2region  需要改成 github.com/lionsoul2014/ip2region/binding/golang/ip2region
2018-10-18 10:32:32 +08:00
lionsoul d3b65df599 Optimize the lua_c module 2018-10-10 11:54:26 +08:00
lionsoul 7e32a84d2c Add automatically lib dir make 2018-10-07 20:58:54 +08:00
lionsoul d796a76400 Optimize the ip2long function with trim logic applied 2018-10-07 10:23:17 +08:00
lionsoul 835d9c1b90 Update the README doc for lua_c module 2018-10-06 15:12:24 +08:00
lionsoul 6fefefa9ae Add README doc for lua_c module 2018-10-06 11:18:01 +08:00
lionsoul 08eea15172 lua ip2region c module forward with release version published 2018-10-06 11:05:01 +08:00
lionsoul a589b79e6c lua binding module interface stdlize with new and ip2long method access by . support 2018-10-05 21:46:21 +08:00
lionsoul 01ab0a0373 lua_c module forward with basic framework finished(tested) 2018-10-05 21:39:35 +08:00
lionsoul 57f4fb4383 lua_c binding basic framework(Not tested yet...) 2018-10-05 14:03:16 +08:00
lionsoul 6a8d641a07 Optimize the lua module by add the __index and the __tostring meta-method 2018-10-05 10:55:24 +08:00
lionsoul 597b769311 Optimize the benchmark script 2018-10-05 09:49:32 +08:00
Koma a584ef9caf 重构python客户端,提升查询性能,兼容python2.x,3.x 2018-10-04 11:39:49 +08:00
lionsoul 1701f49e45 Update the lua interface and add setDbFile interface 2018-10-04 10:22:01 +08:00
lionsoul b1463a23a0 Update the Lua binding 2018-10-03 20:12:30 +08:00
lionsoul cbba946ff7 Update README for lua binding 2018-10-03 20:10:02 +08:00
lionsoul 3d69968290 Lua binding completed(tested) 2018-10-03 20:05:14 +08:00
lionsoul 92684b1183 lua binding forward with binarySearch and btreeSearch interface implemented 2018-10-03 13:12:05 +08:00
lionsoul 932a5d80b4 lua binding basic framework with memory search completed(tested) 2018-10-02 22:36:57 +08:00
lionsoul 64adcf122e Update the maven version number to 1.7.2 2018-10-02 11:24:58 +08:00
lionsoul 8494e1075d Add DbSearcher(dbConfig, dbBinStr) construct method specified by Wendal at https://gitee.com/lionsoul/ip2region/issues/IILFL 2018-10-02 11:14:31 +08:00