ip2region 2.11.0 Release Highlights: New Golang XDB Editor, Data Updates, and Optimizations
The ip2region 2.11.0 release introduces a Golang XDB editor for easy IP data modification, updates the XDB dataset with community‑provided fixes, adds a data‑update scheme, and improves Golang/Java makers and query clients, offering high‑performance offline IP lookup across multiple languages.
ip2region (2.0 - xdb) is an offline IP data management framework and location library that supports hundred‑million‑scale IP segment management, offers query performance at the 10‑microsecond level, and provides generation and query implementations for the xdb data format in many mainstream programming languages.
Specific updates in ip2region 2.11.0:
1. Added a Golang implementation of an XDB data editor, which makes it very convenient to modify or batch‑update IP data, as shown below:
➜ golang git:(master) ./xdb_maker edit --src=../../data/ip.merge.txt
init the editor from source @ `../../data/ip.merge.txt` ...
all segments loaded, length: 683844, elapsed: 446.885102ms
command list:
put [segment] : put the specifield $segment
put_file [file] : put all the segments from the specified $file
list [offset] [size] : list the first $size segments start from $offset
save : save all the changes to the destination source file
quit : exit the program
help : print this help menu
editor>>Documentation can be referenced in the README demonstration.
2. Updated the XDB data; this is not a global update but a version that incorporates community‑provided corrections, thanks to the following three issues for their data fixes:
https://github.com/lionsoul2014/ip2region/issues/196
https://github.com/lionsoul2014/ip2region/issues/200
https://github.com/lionsoul2014/ip2region/issues/2433. Released a data‑update scheme that utilizes community data for a certain amount of updates.
4. Optimized updates for the Golang/Java makers and the query client.
Found this article helpful? Liking and sharing are the greatest support!
Laravel Tech Community
Specializing in Laravel development, we continuously publish fresh content and grow alongside the elegant, stable Laravel framework.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.