Files
v2rayA/service/kernel/touch
Zakk 8e948dbf2d perf(service): locate connected servers with one read of the lists
Which.LocateServerRaw read and parsed every stored node for each lookup,
so a loop over n whiches cost n reads: the latency test, the config
generation for a group, the touch and the subscription update each
scaled with the square of the node count. A Locator reads each list on
first use and resolves every which of the loop against it; the single
lookups keep LocateServerRaw. Resolving 1000 subscription nodes drops
from 1.1 s to 1.6 ms (BenchmarkLocateAll vs BenchmarkLocatorAll).
2026-09-20 00:24:54 +10:00
..