Github user dkuppitz commented on the pull request:

    
https://github.com/apache/incubator-tinkerpop/pull/120#issuecomment-150831242
  
    Looks like the script does a lot of things that are not really required for 
the test. I think we should save some CPU cycles wherever we can, since the 
tests already take long enough.
    
    ```groovy
    def rand = new Random()
    def ii = 0
    def ids = [graph.addVertex().id()]
    while (ii++ < size) {
      def v = graph.addVertex()
      def u = graph.vertices(ids.get(rand.nextInt(ids.size()))).next()
      v.addEdge('linked', u)
      ids += [v, u]*.id()
    }
    g.V()
    ```
    
    In my opinion that should be sufficient.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to