pivot-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Brown <gkbr...@mac.com>
Subject Re: [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
Date Fri, 16 Oct 2009 13:01:53 GMT
OK. Then the fix to ImageView should be pretty straightforward - just  
convert the URL to a String or URI before using it as a key. The fix  
to ApplicationContext.ResourceCacheDictionary should also be  
straightforward. We'll need to create a custom iterator that can  
convert the internal representation back to a URL, but this is a very  
minor issue.

On Oct 16, 2009, at 8:55 AM, Noel Grandin wrote:

>
> Having looked at java.net.URI's equals() method, I would think that
> converting to URI would be safer - some parts of the syntax should be
> compared case-insensitive, while other parts are case-sensitive.
>
> But that's probably a pretty baroque corner case, in real life, it  
> won't
> make much difference.
>
> -- Noel.
>
> Greg Brown wrote:
>> Yeah, after reading that article I agree. The article suggests using
>> toString() rather than converting it to a URI - any pros/cons?
>>
>


Mime
View raw message