I imported my data with joern, but when I wanted to produce pdg diagrams, the query speed became slower and slower with the for loop.The code used for query is as follows. I used cprofile to analyze and found that there was a problem with this function.
def getUSENodesVar(db, func_id):
query = "g.v(%s).out('USE').code" % func_id
ret = db.runGremlinQuery(query)
if ret == []:
return False
else:
return ret
I hope to improve the speed of inquiry.
New contributor
niuniu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.