Commit Graph

751 Commits

Author SHA1 Message Date
Argo Zhang 2c9ba9c56c doc: 增加基准测试结果 2025-11-21 17:05:22 +08:00
Argo Zhang 85144e1c40 refactor: 代码重构 2025-11-21 17:05:13 +08:00
Argo Zhang 426038b3fe refactor: 重构代码 2025-11-21 15:46:09 +08:00
lionsoul2014 2c7b170637 still working on the solutions 2025-11-21 14:49:31 +08:00
Argo Zhang 14d2332483 doc: 更新头文件 2025-11-21 13:14:42 +08:00
Argo Zhang ad84da7d3c test: 更新单元测试 2025-11-21 12:38:10 +08:00
Argo Zhang 9ecca28fc2 refactor: 更新时差问题 2025-11-21 12:37:47 +08:00
Argo Zhang 4ea2e7360d chore: 增加压力测试 2025-11-21 12:25:24 +08:00
Argo Zhang edc2559489 test: 更新单元测试 2025-11-21 12:25:13 +08:00
Argo Zhang 7bd81fecbf chore: 增加 net10 支持 2025-11-21 12:24:49 +08:00
Argo Zhang 6684d0a928 perf: 优化缓存策略 2025-11-21 12:24:32 +08:00
Argo Zhang 30fa54a83f perf: 更新基准测试 2025-11-21 11:27:51 +08:00
Argo Zhang ca7fc93953 test: 增加单元测试提高代码覆盖率 2025-11-21 11:18:37 +08:00
Argo Zhang db50f7b0da test: 增加单元测试覆盖向量缓存逻辑 2025-11-21 11:15:46 +08:00
Argo Zhang 5cfd5f8242 perf: 增加向量缓存逻辑提高性能 2025-11-21 11:15:31 +08:00
Argo Zhang 87b69e6b5f perf: 提高 Content 缓存模式性能 2025-11-21 09:42:59 +08:00
Argo Zhang 002c482db3 doc: 文档统一格式化 2025-11-21 09:03:37 +08:00
Argo Zhang 75d944eaf7 doc: 增加类注释 2025-11-21 08:52:17 +08:00
Argo Zhang 92cc3fd7cb chore: 增加 editorconfig 配置文件 2025-11-21 08:52:07 +08:00
Argo Zhang f1d0e1bee0 chore: 更新 BenchMark 工程 2025-11-21 08:15:23 +08:00
Argo Zhang d7d06e2185 chore: 单元测试框架更改为 net10 2025-11-20 17:52:48 +08:00
Argo Zhang 55a493fd8e chore: bump version 3.0.0 2025-11-20 17:51:13 +08:00
Argo Zhang f03861162f test: 增加全数据验证单元测试 2025-11-20 17:50:33 +08:00
Argo Zhang cbf8f9bfa8 test: 增加单元测试 2025-11-20 17:49:57 +08:00
Argo Zhang 3aa732d1ce test: 增加单元测试 2025-11-20 17:31:21 +08:00
Argo Zhang 9ef1fc34ac test: 增加单元测试提高代码覆盖率 2025-11-20 17:31:13 +08:00
Argo Zhang 62ab160572 refactor: 精简代码 2025-11-20 17:30:57 +08:00
Argo Zhang 87666aa353 test: 更新单元测试 2025-11-20 16:25:38 +08:00
Argo Zhang a2778f9b98 refactor: 增加边界数据支持 2025-11-20 16:25:25 +08:00
Argo Zhang af82b7e18e feat: 增加 XdbVersion 结构体与读取方法 2025-11-20 15:45:39 +08:00
lionsoul2014 a6cb5161ff config and config builder is ready 2025-11-20 15:40:54 +08:00
Argo Zhang d4d211c50b test: 更新单元测试 2025-11-20 15:26:30 +08:00
Argo Zhang 31cd078455 refactor: 兼容 netstander 框架 2025-11-20 15:26:12 +08:00
Argo Zhang 499e091761 feat: 增加 IPv6 算法支持 2025-11-20 15:22:21 +08:00
Argo Zhang 4f39707beb refactor: 更改为 XdbVersion 2025-11-20 15:22:04 +08:00
Argo Zhang 7fab19c46f chore: 更新逻辑 2025-11-19 18:01:38 +08:00
lionsoul2014 bd30b77d54 fix the typo 2025-11-13 09:39:23 +08:00
lionsoul2014 cd78ff2797 add min version supports desc 2025-11-05 12:23:43 +08:00
lionsoul2014 8692309c5b fix the typo to util.load_xxx 2025-11-05 10:59:12 +08:00
lionsoul2014 aa5437c637 3.0.2 with python >= 3.7 supports 2025-11-05 10:35:53 +08:00
Argo Zhang 8573f2f04e feat: 增加 Version 适配 ipV6 2025-11-04 15:45:38 +08:00
lionsoul2014 6eee95967b add tips for compile & usage verson match 2025-11-04 15:02:35 +08:00
Argo Zhang ef7ac3c088 refactor: 更新单元测试 2025-11-04 14:58:04 +08:00
lionsoul2014 4b7172766c lua 5.1/5.2/5.3/5.4 supports 2025-11-04 14:36:20 +08:00
lionsoul2014 dc64c27abd c99 std supports 2025-11-02 23:03:07 +08:00
lionsoul2014 1da81ffc02 API define optimize for C99 std supports 2025-11-02 22:54:44 +08:00
lionsoul2014 ae94b2dac3 version 3.0.1 with License classifier removed 2025-11-02 22:18:36 +08:00
lionsoul2014 f8f01ecd13 use μs 2025-11-02 22:17:47 +08:00
lionsoul2014 db95055a56 μs for elapsed 2025-11-02 21:43:54 +08:00
lionsoul2014 32a755ac3f use the py-ip2region as the pypi package name 2025-11-02 18:34:21 +08:00
lionsoul2014 784f336646 add keywords 2025-11-01 23:02:49 +08:00
lionsoul2014 732d4eb945 ip2region 3.0.0 and pip install desc 2025-10-31 23:41:35 +08:00
lionsoul2014 e753437afc include the bench search test script 2025-10-31 23:41:00 +08:00
lionsoul2014 ab0c39b7cd add ip2region pip install desc 2025-10-31 23:40:38 +08:00
lionsoul2014 db3b9b22ae ip2region package for pypi 2025-10-31 16:12:36 +08:00
lionsoul2014 bec072cd04 add ReadMe & python is ready for IPv6 2025-10-31 11:56:29 +08:00
lionsoul2014 bf0ded1171 search with ip_string for 3-kinds-of cache-policy searcher 2025-10-31 11:52:17 +08:00
lionsoul2014 c4113e5eae xdb bench script and bench test passed 2025-10-30 23:20:03 +08:00
lionsoul2014 731269ebad .3f format the took 2025-10-30 23:19:38 +08:00
lionsoul2014 9797b595ea strip the input 2025-10-30 23:18:03 +08:00
lionsoul2014 3ea717043c fix the bug of buffer read 2025-10-30 23:17:43 +08:00
lionsoul2014 42b9cebb9d call the ip_compare args func 2025-10-30 22:23:57 +08:00
lionsoul2014 0422ed3f4f to run_search_test 2025-10-30 15:34:33 +08:00
lionsoul2014 7f5844ca94 xdb searcher and searcher test script 2025-10-30 15:33:26 +08:00
lionsoul2014 cc97bb80a2 fix the bug of ip_sub_compare call 2025-10-30 15:33:02 +08:00
lionsoul2014 d4d5525392 utils is ready and with unit tests passed 2025-10-30 11:37:19 +08:00
lionsoul2014 6c653f85cd multi-line the str format 2025-10-29 22:59:05 +08:00
lionsoul2014 47067dbe73 utils keep going and unit tests 2025-10-29 22:55:10 +08:00
lionsoul2014 f6213aaaa4 remove the old implmentation 2025-10-29 22:53:04 +08:00
lionsoul2014 3a3abdd01c python ipv6 supporting 2025-10-29 16:03:19 +08:00
lionsoul2014 bbf5df5601 fix the typo 2025-10-27 21:48:25 +08:00
lionsoul2014 0f2260d116 warnings fixed 2025-10-27 16:00:37 +08:00
lion 572aa7b76a update the default xdb path 2025-10-24 12:49:00 +08:00
lion 580d1bb431 update the default xdb path to the latest xdb 3.0 version 2025-10-24 12:47:34 +08:00
gongzhengyang 4ebfa61179 Fix: rust bind return empty string for not found IP 2025-10-21 14:35:18 +08:00
lion 8a7a899c64 fix the sample region info 2025-10-21 13:31:01 +08:00
lion f7ad4309f8 search api prototyp desc 2025-10-21 13:12:59 +08:00
lion d56230518a search api desc 2025-10-21 12:57:25 +08:00
lion 2a77acf1c0 return empty string for empty match 2025-10-21 12:57:14 +08:00
lion d5d0c15c8d syntax the api code with php 2025-10-21 11:20:44 +08:00
lion b3498197a8 return empty string for empty match 2025-10-21 11:14:58 +08:00
lion d10c57b598 search api desc 2025-10-21 11:14:22 +08:00
lion 7050da1a68 search api desc 2025-10-21 10:55:42 +08:00
lion bb3c845c81 search api desc & return empty string for empty match 2025-10-21 10:48:25 +08:00
lion ca6c0506e6 search api desc and return empty string for empty match 2025-10-21 10:40:34 +08:00
lion 79cc6c1b0d putInt2 to putUint16 and getInt2 to getUint16 2025-10-21 10:34:53 +08:00
lion bd69a255fd return empty string for empty match 2025-10-21 10:28:56 +08:00
lion 8f6effd8eb verify api and verify the xdb before search or bench test 2025-10-20 22:26:15 +08:00
lion d503206e14 3.1.5 release verison with third party package lists 2025-10-20 19:10:21 +08:00
lion b3383680f9 code format stdlize 2025-10-20 19:09:37 +08:00
lion 541420b8df pure lua script is ready for IPv6 2025-10-20 18:59:39 +08:00
lion 6cb1da2794 search process forward 2025-10-20 15:37:51 +08:00
lion ec7cb6d3ed Merge branch 'master' into fr_lua_ipv6 2025-10-19 23:08:31 +08:00
lion a30d922225 lines merge 2025-10-19 23:07:00 +08:00
lion a1b2c21767 optimize the ipv6 bytes to string 2025-10-19 23:05:15 +08:00
lion 1e31b4b143 ip util functions is ready 2025-10-19 22:57:06 +08:00
lion baa9f62d6b Merge branch 'master' into fr_lua_ipv6 2025-10-19 18:42:52 +08:00
Argo Zhang d362231ae8 test: 更新依赖到最新 2025-10-19 17:37:18 +08:00
Argo Zhang 1ad01ff98b doc: 更新 readme 文档 2025-10-19 17:37:09 +08:00
Argo Zhang 5deb6d6553 test: 更新依赖文件名 2025-10-19 17:36:57 +08:00
Argo Zhang 444b2036d1 chore: 更新基准测试文件名 2025-10-19 17:36:37 +08:00
Argo Zhang 35e505bd74 test: 更新单元测试依赖文件 2025-10-19 17:36:03 +08:00
Argo Zhang 2fe8032d8b chore: 更改项目框架为 net9 2025-10-19 17:35:37 +08:00
lion 69eb94dcd8 funcs to parse ip address (IPv4 and IPv6) 2025-10-19 17:26:17 +08:00
Argo Zhang 0ad3172f2e doc: 增加注释 2025-10-19 15:30:34 +08:00
Argo Zhang 2ac7655f62 chore: 更改依赖 2025-10-19 15:30:26 +08:00
Argo Zhang 6aab24fb88 refactor: 更改为 TryAddSingleton 防止重复注册 2025-10-19 15:24:39 +08:00
Argo Zhang b94123fee3 refactor: 重构代码 2025-10-19 15:19:00 +08:00
Argo Zhang 0caff12306 chore: 更新依赖包版本号为具体版本号 2025-10-19 15:16:39 +08:00
Argo Zhang 6ad1e8e2e2 test: 更新单元测试 xdb 文件路径 2025-10-19 15:16:23 +08:00
Argo Zhang 9e979efd7b refactor: 更新 link 路径 2025-10-19 15:11:58 +08:00
Argo Zhang f594838784 refactor: 更改扩展类名称 2025-10-19 15:09:06 +08:00
Argo Zhang 24dcb24e24 refactor: 增加 Keyed 逻辑 2025-10-19 15:08:16 +08:00
Argo Zhang ddb2b4ff1d Merge remote-tracking branch 'github.com/master' into feat-services 2025-10-19 14:57:44 +08:00
Argo Zhang 2662fb05c2 feat: 增加注入服务支持 2025-10-19 14:55:37 +08:00
Argo Zhang 7e4d37b1db refactor: 增加更多框架支持 2025-10-19 14:55:21 +08:00
Argo Zhang d1715c75f6 refactor: 更新 xdb 文件名 2025-10-19 14:54:49 +08:00
Argo Zhang c82d2e6117 chore: 增加 slnx 解决方案工程 2025-10-19 14:54:31 +08:00
lion ffb632c3d0 add third party js binding impl 2025-10-19 10:19:40 +08:00
lion 413ccd32ce version 3.1.3 with empty match interception 2025-10-17 12:42:52 +08:00
lion e3b87326d2 empty match interception with null return 2025-10-17 12:35:10 +08:00
lion 5a51b75411 optimize the doc 2025-10-15 21:33:54 +08:00
lion a2b76d38a9 fix the duration stats 2025-10-15 13:39:18 +08:00
lion 8c7c83cf7f deprecated the old nodejs and typescript binding 2025-10-15 11:36:17 +08:00
lion fbadc7cca0 new javascript binding is Ready with IPv4 and IPv6 supported 2025-10-15 11:27:10 +08:00
lion f03d33e5fe publish the ip2region.js package and update the doc for it 2025-10-15 11:10:47 +08:00
lion c809c072bc add search test demo docs 2025-10-15 10:18:45 +08:00
lion 5c1522fce4 search test app is ready 2025-10-15 10:13:10 +08:00
lion a3eedc5438 rm unnecessary brackets 2025-10-15 10:12:52 +08:00
lion 4f8cdb05c9 remove the unused code 2025-10-15 09:30:32 +08:00
lion 008bbbe4d7 bench script is ready and bench test passed 2025-10-14 21:44:07 +08:00
lion d35a7b9120 bench script 2025-10-14 14:20:19 +08:00
lion 4d71b47e05 merge the tests to util or searcher 2025-10-14 11:25:12 +08:00
lion 40ea8a267f remove the debug checks 2025-10-13 22:35:51 +08:00
lion 2dcccf22a3 verify impl and verify the xdb files 2025-10-13 22:21:30 +08:00
lion e073e26f52 fix the bug of ipToString with tailing double colon 2025-10-13 18:42:20 +08:00
lion ed42fd0fba adjust the export order 2025-10-13 18:13:55 +08:00
lion 9959117d92 ReadMe for basic usage 2025-10-13 18:06:54 +08:00
lion 3cab1bae2e add ts type define and api exports 2025-10-13 15:28:30 +08:00
lion 5a8d7c4152 use the ESM standard 2025-10-13 14:35:45 +08:00
lion 4507c2f706 javascript is Ready for IPv6 2025-10-13 12:05:20 +08:00
lion ad78dbe547 searcher with ipv4 tests passed 2025-10-12 13:48:26 +08:00
lion e924a7c17d version ip compare is ready 2025-10-12 11:07:22 +08:00
lion 6c463282d0 merge the header/version to util.js 2025-10-11 23:57:55 +08:00
lion bb19c7110a mi = max-index 2025-10-11 23:45:05 +08:00
lion 5fce4eaa01 ipv6 parse and toString beta version 2025-10-11 23:43:37 +08:00
lion 01bd749d4a ipv6 parse and to string alpha version 2025-10-11 19:34:24 +08:00
lion 3693eb47a8 Merge branch 'master' into fr_javascript_ipv6 2025-10-11 15:53:47 +08:00
lion e39ac2d6d1 optimize the type define 2025-10-11 15:53:09 +08:00
lion d97967d565 ip parse and to string util implementing 2025-10-11 15:49:24 +08:00
lion ccf7f323c2 header/vector/content load util funcs is ready 2025-10-11 13:28:20 +08:00
lion d6345bc015 ignore the package-lock.json 2025-10-10 16:07:45 +08:00
lion 086250c666 javascript binding with IPv4 and IPv6 supports 2025-10-10 16:03:33 +08:00
lion 54a160e230 ignore the test_util binary 2025-10-10 10:31:22 +08:00
lion 2d71241a3b for msvc 2025-09-30 09:36:52 +08:00
gongzhengyang 1f1ad5aaf6 Style: fmt binding rust code 2025-09-28 15:51:54 +08:00
gongzhengyang df6004b42e Feat: add rust maker for ipv4 and ipv6 2025-09-28 15:27:11 +08:00
gongzhengyang 05c7c17af0 Docs: add bench result for rust binding in readme 2025-09-28 15:27:11 +08:00
lion a137813509 enable all standard warnings & fix all the warnings 2025-09-25 22:24:01 +08:00
lion 0179edc3a8 auto manager the region buffer & remove the unused vars 2025-09-25 22:11:52 +08:00
狮子的魂 1ac2113afc
Merge pull request #382 from gongzhengyang/master
Rust binding supports multi cache policies and IPv6
2025-09-24 15:03:32 +08:00
gongzhengyang 139972dfb8 Fix: rust code fmt 2025-09-24 14:55:08 +08:00
gongzhengyang 379ab6ce73 Fix: rust binding bench count error 2025-09-24 14:50:09 +08:00
gongzhengyang d3592eb7cd Feat: improve bench query code in rust example, add usage at Readme 2025-09-24 14:35:42 +08:00
gongzhengyang b6410e16d0 Docs: improve rust binding usage in Readme 2025-09-24 10:42:12 +08:00
gongzhengyang d7f4ef5a07 Feat: limit bench IPv6 range 2025-09-24 10:41:47 +08:00
gongzhengyang 7a4bd4ed2b Fix: binary search ip unneccessary repeat call 2025-09-24 10:40:53 +08:00
gongzhengyang a6931ce31b Docs: improve binding rust readme docs, basic usage 2025-09-23 19:51:56 +08:00
gongzhengyang 32e005e1e6 Feat: rust binding support IPv6 search 2025-09-23 19:51:51 +08:00
gongzhengyang b5b00aeb87 Feat: improve rust binding example read file 2025-09-23 19:51:44 +08:00
gongzhengyang b16fe21506 Feat: add file and vector index cache search 2025-09-23 19:51:34 +08:00
lion 931fb9e67b use the local stack region_buffer instead of heap allocation 2025-09-23 18:15:46 +08:00
lion 7576daa6cc empty input ignore 2025-09-23 11:09:23 +08:00
lion 75893f0331 include time.h for windows struture tm 2025-09-22 23:47:38 +08:00
lion 355c0d8673 default lua version to 5.4 2025-09-21 13:06:25 +08:00
lion 29fa8e25ab lua c ext is ready for IPv6 2025-09-21 12:56:42 +08:00
lion 46f56f0eca remove the unused defines 2025-09-21 00:51:19 +08:00
lion 2fe0d1f59e Ipv6 search is ready 2025-09-21 00:45:45 +08:00
lion b01253e6b3 ip parse and binary ip bytes use 2025-09-20 17:29:11 +08:00
lion 6712ee9504 calling the latest xdb api 2025-09-20 14:37:22 +08:00
lion 5fa69300ad lua_c ipv6 supporting 2025-09-20 14:03:09 +08:00
lion 7e599e05a0 print the error tip if region_buffer init failed 2025-09-19 16:16:19 +08:00
lion 48c2b395bc c binding is ready for IPv6 2025-09-19 13:08:47 +08:00
lion dff3084b93 C binding is ready for IPv6 2025-09-18 23:09:19 +08:00
lion 8fbdf82797 IPv6 search and docs is ready 2025-09-18 15:53:48 +08:00
lion 73c8b20d3a apply the bytes ip to the whole search process 2025-09-17 23:10:42 +08:00
lion 69b9f062e4 directly compare the ip from the buffer 2025-09-17 14:45:03 +08:00
lion 1575e581cd try to apply the bytes_ip_t for the search 2025-09-17 14:43:28 +08:00
lion 4cff9eb6ee ip parse / to_string / compare util function is ready 2025-09-17 13:07:35 +08:00
lion 0fd0bc59d0 bytes ip utils prototype 2025-09-16 22:09:49 +08:00
lion c64837db67 ip util function update for IPv6 2025-09-16 15:29:55 +08:00
lion eb80b89c0e ipv6 supporting for clang 2025-09-16 14:46:34 +08:00
lion 9a14e32736 add xdb file verify util and call it before the search/bench test 2025-09-16 12:35:22 +08:00
lion 4c1b0362c8 fix the typo 2025-09-16 12:34:50 +08:00
lion 7bbe7d681d PHP binding IPv6 supports is ready 2025-09-15 15:22:49 +08:00
lion 95c129c7d1 PHP IPv6 supporting 2025-09-14 23:14:42 +08:00
lion 537077279a Java IPv6 support is ready 2025-09-13 00:21:25 +08:00
lion a91fdd38bc updatet the pom desc 2025-09-12 15:48:20 +08:00
lion 9af9c927fe IPv6 impl for java binding is ready 2025-09-12 15:43:37 +08:00
lion f226ef1f79 update the comments 2025-09-12 15:31:12 +08:00