Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
3.0.2-incubating
-
None
Description
The performance gap between GraphTraversalSource.addV() and Graph.addVertex() is fairly wide:
gremlin> testAddV = { num -> graph = TinkerGraph.open(); g = graph.traversal(); for (i = 0; i < num; i++) { g.addV(id, i).next() } } ==>groovysh_evaluate$_run_closure1@30b9eadd gremlin> testAddVertex = { num -> graph = TinkerGraph.open(); for (i = 0; i < num; i++) { graph.addVertex(id, i) } } ==>groovysh_evaluate$_run_closure1@2e647e59 gremlin> clock {testAddV(100000)} ==>462.04376528 gremlin> clock {testAddVertex(100000)} ==>70.90365949999999
Try to make some improvements there. Perhaps this work should also extend to addE/addEdge as well.