Skip to content

Commit

Permalink
Forward nodeCount to NodesBuilder within NodesFilter
Browse files Browse the repository at this point in the history
This will improve memory usage for ArrayIdMap.
Before, we only passed highest id and internally
allocated HLA with that id used as capacity.
  • Loading branch information
s1ck committed Jan 24, 2024
1 parent 7c7a908 commit f16f50c
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ public static FilteredNodes filterNodes(
var nodesBuilder = GraphFactory.initNodesBuilder()
.idMapBuilderType(inputNodes.typeId())
.deduplicateIds(false)
.nodeCount(inputNodes.nodeCount())
.concurrency(concurrency)
.maxOriginalId(inputNodes.highestOriginalId())
.hasLabelInformation(!inputGraphStore.nodeLabels().isEmpty())
Expand Down

0 comments on commit f16f50c

Please sign in to comment.