You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pivot.apache.org by "Sandro Martini (JIRA)" <ji...@apache.org> on 2009/08/03 10:53:14 UTC
[jira] Commented: (PIVOT-132)
pivot/wtk/ApplicationContext.java:1201
pivot.wtk.ApplicationContext.resourceCache is or uses a map or set of URLs,
which can be a performance hog
[ https://issues.apache.org/jira/browse/PIVOT-132?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12738232#action_12738232 ]
Sandro Martini commented on PIVOT-132:
--------------------------------------
Hi,
we are making a lot of changes for the 1.3 release, and given that i have this marked as an High Priority Bug, wouldn't it be better to make also this change (to the Pivot API) for the 1.3 Release ?
I'm available to help on this.
Sandro
> pivot/wtk/ApplicationContext.java:1201 pivot.wtk.ApplicationContext.resourceCache is or uses a map or set of URLs, which can be a performance hog
> -------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: PIVOT-132
> URL: https://issues.apache.org/jira/browse/PIVOT-132
> Project: Pivot
> Issue Type: Improvement
> Components: wtk
> Affects Versions: 1.1, 1.2
> Reporter: Sandro Martini
> Assignee: Greg Brown
> Priority: Minor
> Fix For: 1.4
>
>
> As from the latest FindBugs, this warning (with High Priority) in hilited:
> pivot/wtk/ApplicationContext.java:1201 pivot.wtk.ApplicationContext.resourceCache is or uses a map or set of URLs, which can be a performance hog
> And from their doc related to this:
> 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.
> Trying to change URL with URI is ok here, but given compilation error in approx. 24 classes related to this.
> Needs further study.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.