Geosite questions #5937
PoneyClairDeLune
started this conversation in
Ideas
Replies: 1 comment
-
|
geosite 和 geoip 是祖传屎山代码,即便以前有些优化也只是在局部解决问题 现在重构后,移动平台的 domain: 使用 trie 目前重构后的版本仍有一些可以微优化的地方 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I've been wondering... Why doesn't Xray use a tree-based matcher for
domain:,dotless:andfull:matchers? The memory usage should be improved, but I'd have no idea by how much.The tree would be built in the reverse order of domains, with TLDs forming the direct children of the root node. Whenever
domain:,dotless:orfull:was matched, the corresponding leaf node would be marked with such flags, as well as which lists do those flags apply. I currently use such a structure to implement a domain de-duplicator for merging several blocklists. Other types of matchers though will have to use the current design.The assumption was made from the file structure of
geosite.dat.Beta Was this translation helpful? Give feedback.
All reactions