incubator-clerezza-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Manuel Innerhofer (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (CLEREZZA-348) JenaGrahAdapter/JenaGraph: Prevent that unnecessary mappings are added to the BidiMap
Date Tue, 02 Nov 2010 14:48:25 GMT

     [ https://issues.apache.org/jira/browse/CLEREZZA-348?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Manuel Innerhofer resolved CLEREZZA-348.
----------------------------------------

    Resolution: Fixed

With the following code snippet you can see that the platform performance decreases when making
filter calls containing new BNodes.

MGraph unsecuredSystemGraph = ((SecuredMGraph) systemGraph).getUnsecuredMGraph();
long count = 0;
while (true) {
	count++;
	unsecuredSystemGraph.filter(new BNode(), null, new BNode());
	if (count%10000 == 0) {
		System.out.println(count);
	}
}

> JenaGrahAdapter/JenaGraph: Prevent that unnecessary mappings are added to the BidiMap
> -------------------------------------------------------------------------------------
>
>                 Key: CLEREZZA-348
>                 URL: https://issues.apache.org/jira/browse/CLEREZZA-348
>             Project: Clerezza
>          Issue Type: Improvement
>            Reporter: Manuel Innerhofer
>            Assignee: Manuel Innerhofer
>
> BNodes used when filtering with JenaGraphAptapter.performFilter() are added to the map
containing the mappings from clerezza resources to jena nodes. This regardless of their existence
in the graph. A jena blank node to map to is created, but has no use.
> The same issue is in JenaGraph.graphBaseFind() but the other way around.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message