Skip to content

Commit

Permalink
improve proto conversion batching (#1798)
Browse files Browse the repository at this point in the history
  • Loading branch information
bbrehm authored Jan 10, 2025
1 parent f04c034 commit 71180f2
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,7 @@ object ProtoCpgLoader {
val cpg = openOrCreateCpg(storagePath)

// first pass: add the raw nodes without any properties or edges
protoCpgs().foreach { cpgProto =>
addNodesRaw(nodesIter(cpgProto), cpg.graph, protoToGraphNodeMappings)
}
addNodesRaw(protoCpgs().flatMap(cpgProto => nodesIter(cpgProto)), cpg.graph, protoToGraphNodeMappings)

// second pass: set node properties and add edges
val diffGraph = Cpg.newDiffGraphBuilder
Expand Down

0 comments on commit 71180f2

Please sign in to comment.