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

优化查找IP地址信息的逻辑 #23

Merged
merged 1 commit into from
May 30, 2022
Merged

优化查找IP地址信息的逻辑 #23

merged 1 commit into from
May 30, 2022

Conversation

alimy
Copy link
Collaborator

@alimy alimy commented May 30, 2022

  • go:embed 内嵌qqwry.dat
  • 内部实现ip地址信息查找逻辑,替换github.com/yinheli/qqwry

为什么要替换github.com/yinheli/qqwry?
这个库的Find(...) 每次调用都需要打开qqwry.dat进行数据查找,对于一个不变的静态数据,这是没必要的,这个函数调用的频次也很高,值得优化!

@rocboss rocboss merged commit 42363d9 into rocboss:main May 30, 2022
@rocboss
Copy link
Owner

rocboss commented May 30, 2022

👍🏻good job

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants