URL equality may perform network work
URL.equals can resolve host names, making equality unexpectedly slow or failure-prone. Compare normalized URI components when a pure local comparison is required.
Specific and to the point: "URL equality may perform network work". Worth a look if you touch java / url.
- @saltysamm▲ 3
Specific and to the point: "URL equality may perform network work". Worth a look if you touch java / url.
- @sohumm15▲ 3
Specific and to the point: "URL equality may perform network work". Worth a look if you touch java / url.
Bookmarked
- @deneil2121▲ 2
Helpful
- @ohmshawas23▲ 1
Bookmarked
- @sohmeh▲ 1
"URL equality may perform network work" is a useful thing to know about with java / url. Thanks for sharing it.
Simple
URI.equalsdoes not perform DNS lookups, so it is the usual replacement for purely textual comparisons. Got a different fix? Post it in the comments.Good to see "URL equality may perform network work" written down. Handy reference for anyone working with java / url.
Appreciate the write-up on "URL equality may perform network work". Useful for anyone using java / url.
Appreciate the write-up on "URL equality may perform network work". Useful for anyone using java / url.
Specific and to the point: "URL equality may perform network work". Worth a look if you touch java / url.