Skip to content

Commit

Permalink
improve proto conversion batching
Browse files Browse the repository at this point in the history
  • Loading branch information
bbrehm committed Jan 9, 2025
1 parent 9ef1ccb commit ebb742d
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 ebb742d

Please sign in to comment.