Github user osma commented on the pull request:

    https://github.com/apache/jena/pull/119#issuecomment-169590779
  
    @ajs6f There are two layers of map-like things here. The outer one is the 
actual cache (query parameters to result set), and LinkedHashMap is currently 
used for that but something like SimpleCache or CacheUnbounded could be used 
instead.
    
    If we switch to Cache classes instead of LinkedHashMap then we cannot use 
computeIfAbsent, because a Cache isn't a Map. So I can adopt one of your 
suggestions, but not both at the same time. Which one do you prefer? :)
    
    Guava classes are used to store result sets i.e. the values stored in the 
cache are ListMultimaps. They work well here and I wouldn't replace them with 
anything else.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to