ggsava / block-this

Block This - FREE DNS based Ad Blocker for Android
https://block-this.com
GNU General Public License v3.0
373 stars 61 forks source link

Redirect to 0.0.0.0 instead of 127.0.0.1 for speed #12

Open jtechpro opened 7 years ago

jtechpro commented 7 years ago

Since localhost takes some time than 0.0.0.0 (which is termed as invalid address), the apps/browsers can render it immediately.

It could increase the performance.

ggsava commented 7 years ago

@jtechpro Yes, you are correct. I was already on my todo list. I'm trying to release a completely new version this week and working hard on that, but after 3.0 is released I will address this as well (probably next week).

p.s. depending on the system and application, 0.0.0.0 doesn't always mean "invalid address" but can also mean "any", so it could actually be slower. I will have to run some tests before I actually make the change.