[
http://jira.amdatu.org/jira/browse/AMDATU-82?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=10283#comment-10283
]
Ivo Ladage - van Doorn commented on AMDATU-82:
----------------------------------------------
I'm using the FutureTask mechanism since this provides an easy way to implement
a caching mechanism with minimal lock contention. Instead of synchronizing on
this or a whole map, in this approach threads are only blocked when requesting
an uncached URL and requesting the gadgetspec for a certain URL is guaranteed
to happen only once.
Regarding separation of concerns; I agree that by design it would be better to
separate caching logic from the service implementation. However, I think we
should come up with a generic design pattern used by all cached services. I'll
create a separate issue for it.
> Loading of gadget definitions is very slow
> ------------------------------------------
>
> Key: AMDATU-82
> URL: http://jira.amdatu.org/jira/browse/AMDATU-82
> Project: Amdatu
> Issue Type: Bug
> Components: Amdatu OpenSocial
> Affects Versions: 0.0.4
> Reporter: Dion Meijer
> Assignee: Ivo Ladage - van Doorn
> Fix For: 0.0.6
>
>
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira