From: <tho...@us...> - 2014-02-23 12:16:04
|
Revision: 7876 http://sourceforge.net/p/bigdata/code/7876 Author: thompsonbry Date: 2014-02-23 12:15:58 +0000 (Sun, 23 Feb 2014) Log Message: ----------- replaced ConcurrentSkipList with Collections.newSetFromMap() per feedback on possible performance impact from the skip list. Modified Paths: -------------- branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/java/com/bigdata/rdf/sparql/ast/eval/ASTEvalHelper.java Modified: branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/java/com/bigdata/rdf/sparql/ast/eval/ASTEvalHelper.java =================================================================== --- branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/java/com/bigdata/rdf/sparql/ast/eval/ASTEvalHelper.java 2014-02-23 00:21:30 UTC (rev 7875) +++ branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/java/com/bigdata/rdf/sparql/ast/eval/ASTEvalHelper.java 2014-02-23 12:15:58 UTC (rev 7876) @@ -29,6 +29,7 @@ import info.aduna.iteration.CloseableIteration; +import java.util.Collections; import java.util.Iterator; import java.util.LinkedHashMap; import java.util.LinkedHashSet; @@ -36,7 +37,7 @@ import java.util.List; import java.util.Map; import java.util.Set; -import java.util.concurrent.ConcurrentSkipListSet; +import java.util.concurrent.ConcurrentHashMap; import org.apache.log4j.Logger; import org.apache.log4j.MDC; @@ -540,8 +541,9 @@ */ // Concurrency safe set. - describedResources = new ConcurrentSkipListSet<BigdataValue>(); - + describedResources = Collections + .newSetFromMap(new ConcurrentHashMap<BigdataValue, Boolean>()); + // Collect the bindings on those variables. solutions2 = new DescribeBindingsCollector(// describeVars,// what to collect This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |