You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2016/02/13 18:39:18 UTC

[jira] [Commented] (JENA-1141) NodeToTriplesMapMem calls "get" then "put" - replace with a "getPutIfAbsent"

    [ https://issues.apache.org/jira/browse/JENA-1141?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15146082#comment-15146082 ] 

ASF subversion and git services commented on JENA-1141:
-------------------------------------------------------

Commit 0279a0dad94c81c0d4c333f35f2ed9c8f1ad3467 in jena's branch refs/heads/master from [~andy.seaborne]
[ https://git-wip-us.apache.org/repos/asf?p=jena.git;h=0279a0d ]

JENA-1141: Add the function BunchMap.getOrSet.

Not used - testing shows no observable difference in performance.


> NodeToTriplesMapMem calls "get" then "put" - replace with a "getPutIfAbsent"
> ----------------------------------------------------------------------------
>
>                 Key: JENA-1141
>                 URL: https://issues.apache.org/jira/browse/JENA-1141
>             Project: Apache Jena
>          Issue Type: Improvement
>            Reporter: Andy Seaborne
>            Priority: Minor
>
> NodeToTriplesMapMem line 45 and other places.
> It walks the hash map twice to insert a new item.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)