Menu

#3 in Gloze remove Maps with URL as key

open
nobody
performance (1)
5
2010-03-12
2010-03-12
No

I passed FindBugs on Gloze, and it found something interesting:

This method or field is or uses a Map or Set of URLs. Since both the
equals and hashCode method of URL perform domain name resolution, this
can result in a big performance hit. See
http://michaelscharf.blogspot.com/2006/11/javaneturlequals-and-hashcode-make.html
for more information. Consider using java.net.URI instead.

I think it may cause bad performance in Gloze.

Need to check and coordinate with Steve Battle.

Discussion


Log in to post a comment.