To improve the performance of your computer on the web, here's the lowest branch of the tree: exclude hosts. My hosts file contains more than 72k entries, which makes my web browsing much more fluid. Every time I discard it, I quickly regret it. https://raw.githubusercontent.com/borisschapira/hosts/master/hosts …
-
-
Replying to @borisschapira
I wonder if lookups in this list of 72k entries are O(n) or O(1).
0 replies 0 retweets 0 likes -
Replying to @borisschapira
It is definitely a big improvement. I was just curious if and how operating systems are caching /etc/hosts file. Is it transformed into another data structure? (I usually forward those questions to
@dioxmat)1 reply 0 retweets 0 likes -
Replying to @anthony_ricaud @borisschapira
On linux at least AFAIK it's not cached at all unless you have a local dns forwarder like dnsmasq
1 reply 0 retweets 1 like
Use dnscrypt-proxy. Lookups are O(log N) but more importantly, it supports regular expressions and IP blocking to drastically reduce the size of the list. Plus, you get logging, time-based rules, caching, and more.
2:49 AM - 7 Sep 2018
from Saint-Mandé, France
0 replies
0 retweets
3 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.