Uploaded image for project: 'TinkerPop'
  1. TinkerPop
  2. TINKERPOP-957

Improve speed of addV()

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0.2-incubating
    • 3.1.1-incubating
    • process
    • 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.

      Attachments

        1. addVBaseline.svg
          270 kB
          Ted Wilmes

        Activity

          People

            twilmes Ted Wilmes
            spmallette Stephen Mallette
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: