chore: trigger gc when the rule is loaded

This commit is contained in:
Skyxim
2023-03-29 22:46:16 +08:00
parent d462257e53
commit 7b7a8981a6
2 changed files with 1 additions and 7 deletions

View File

@ -9,7 +9,6 @@ import (
"net/url"
"os"
"regexp"
"runtime"
"strconv"
"strings"
"time"
@ -821,8 +820,6 @@ func parseRules(rulesConfig []string, proxies map[string]C.Proxy, subRules map[s
rules = append(rules, parsed)
}
runtime.GC()
return rules, nil
}
@ -1093,7 +1090,6 @@ func parseFallbackGeoSite(countries []string, rules []C.Rule) ([]*router.DomainM
log.Infoln("Start initial GeoSite dns fallback filter `%s`, records: %d", country, recordsCount)
}
}
runtime.GC()
return sites, nil
}