Closed iikira closed 3 years ago
看了一下代码,发现IP的数据结构为数组
IPNetworkPrimaryList []*net.IPNet IPNetworkAlternativeList []*net.IPNet
这样搜索的性能较低,建议使用二叉搜索树等数据结构,提高搜索性能 参考: https://github.com/emirpasic/gods
感觉查找的量级并没有达到靠其它算法来提升
这不是baidupcs-go的巨佬吗
Implemented since version v1.7-rc1
看了一下代码,发现IP的数据结构为数组
这样搜索的性能较低,建议使用二叉搜索树等数据结构,提高搜索性能 参考: https://github.com/emirpasic/gods