Re: URLStreamHandler.getHostAddress() performance

2014-11-27 Thread Pavel Rappo
Peter, thanks a lot for the link and such a detailed explanation. I've been working with URL/URLStreamHandler recently to make them "modularization ready" and have noticed some of the problems you were talking about as well. I do think we should make our best effort to fix it. Give me some time

Re: URLStreamHandler.getHostAddress() performance

2014-11-27 Thread Pavel Rappo
> On 25 Nov 2014, at 14:03, Mark Sheppard wrote: > > I think this raises a more fundamental question, as to why the URL > hashCode() and equals() methods delegates to URLStreamHandler > in the first place? rather than performing the processing within the URL > class itself, and synchroniz

Re: URLStreamHandler.getHostAddress() performance

2014-11-27 Thread Peter Levart
Hi, Some time ago I dived into the sinchronization pitfalls of URL / URLStreamHandler and came up with a possible solution. Here's the thread (mostly just my comments) and a patch: http://mail.openjdk.java.net/pipermail/net-dev/2014-July/008592.html Regards, Peter On 11/25/2014 03:03 PM, Ma