5 ms·
you're getting downvoted, but I remember this issue cropping up for windows XP boxes. Other Operating systems and more modern versions of windows cope with larg
by GhotiFish 11y ago
you're getting downvoted, but I remember this issue cropping up for windows XP boxes. Other Operating systems and more modern versions of windows cope with large hosts lists more competently.
- bloaf 11y agoThe problem isn't completely solved, though. https://www.reddit.com/r/Windows10/comments/401h2o/hosts_file_update_is_extremely_slow/ https://www.reddit.com/r/Windows10/comments/401h2o/hosts_fil... In windows 10, the DNS Client does something that is O(n^2)
- skewart 11y agoIsn't the O(n^2) operation described in that thread happening only when the hosts file gets updated, and not with every DNS lookup? I would imagine even sequentially searching a local list of 350,000 entries, like the post describes, would still be extremely fast in the context of loading a web page. But, that said, there can be a huge difference between how one might think things should work and what actually happens.
- kup0 11y agoYeah maybe it's mostly specific to Windows. Wouldn't surprise me if that's the case. I was speaking from a Windows perspective (I should have specified).