💬 New comment on Xray-core#6821 Geodata: Reduce MPH matcher runtime memory usage
by @RPRX
> on Loyalsoldier's geosite.dat category-ads-all now retains 14.4 MiB in under 300 objects instead of 32.2 MiB in 636k, and with ads-all, cn and geolocation-!cn loaded a forced GC takes 0.3 ms instead of 9-10 ms at GOMAXPROCS=2. build time and lookups on these lists are the same, the new differential test compares against a map over all short inputs
~~这个 PR 很猛啊~~
事实上对于索引 Geodata 这种常驻内存的静态数据集,本来就应该这么设计,在“decompress 程度”和"索引速度"间找个平衡点
~~所以其实我感觉还能进一步降低内存占用~~
Reply to this message to post a comment on GitHub.
Post #3559
1.27K
Forwarded from GitHub
- 👍 5
- 🏆 5
- 😁 3
- 💅 1