[
https://issues.apache.org/jira/browse/TIKA-1978?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15299047#comment-15299047
]
ASF GitHub Bot commented on TIKA-1978:
--------------------------------------
GitHub user lewismc opened a pull request:
https://github.com/apache/tika/pull/122
TIKA-1978 Invocation of java.net.URL.equals(Object), which blocks to do
domain name resolution, in
org.apache.tika.parser.geo.topic.GeoParser.initialize(URL)
This issue addresses https://issues.apache.org/jira/browse/TIKA-1978
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/lewismc/tika TIKA-1978
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/tika/pull/122.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #122
----
commit fc4f13ddebf2b9519d75a3079adb307313e79259
Author: Lewis John McGibbney <[email protected]>
Date: 2016-05-24T22:24:23Z
TIKA-1978 Invocation of java.net.URL.equals(Object), which blocks to do
domain name resolution, in
org.apache.tika.parser.geo.topic.GeoParser.initialize(URL)
----
> Invocation of java.net.URL.equals(Object), which blocks to do domain name
> resolution, in org.apache.tika.parser.geo.topic.GeoParser.initialize(URL)
> ---------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: TIKA-1978
> URL: https://issues.apache.org/jira/browse/TIKA-1978
> Project: Tika
> Issue Type: Bug
> Components: parser
> Affects Versions: 1.13
> Reporter: Lewis John McGibbney
> Assignee: Lewis John McGibbney
> Priority: Critical
> Fix For: 1.14
>
>
> Performance - The equals and hashCode methods of URL are blocking
> 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.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)