mirror of
https://github.com/SukkaW/Surge.git
synced 2026-01-31 02:51:53 +08:00
Perf: many changes
- Hoist process hosts line callback - Reduce dp hosts file size - Reduce domain sort
This commit is contained in:
@@ -9,7 +9,8 @@ export const HOSTS: HostsSource[] = [
|
||||
true,
|
||||
TTL.THREE_HOURS()
|
||||
],
|
||||
['https://someonewhocares.org/hosts/hosts', null, true, TTL.THREE_HOURS()],
|
||||
// Dan Pollock's hosts file, 0.0.0.0 version is 30 KiB smaller
|
||||
['https://someonewhocares.org/hosts/zero/hosts', null, true, TTL.THREE_HOURS()],
|
||||
// no coin list is not actively maintained, but it updates daily when being maintained, so we set a 3 days cache ttl
|
||||
['https://raw.githubusercontent.com/hoshsadiq/adblock-nocoin-list/master/hosts.txt', null, true, TTL.THREE_DAYS()],
|
||||
// have not been updated for more than a year, so we set a 14 days cache ttl
|
||||
|
||||
Reference in New Issue
Block a user