DomainMatcher: Reduce startup time on Android as well (#5935)

https://github.com/XTLS/Xray-core/pull/5924#issuecomment-4242355080
This commit is contained in:
Meow
2026-04-15 20:00:41 +08:00
committed by GitHub
parent ef77a42063
commit 5b91b152bb

View File

@@ -173,7 +173,7 @@ func parseDomain(d *Domain) (strmatcher.Matcher, error) {
func newDomainMatcherFactory() DomainMatcherFactory {
switch runtime.GOOS {
case "ios":
case "ios", "android":
return &CompactDomainMatcherFactory{shared: make(map[string]strmatcher.MatcherGroup)}
default:
return &MphDomainMatcherFactory{}