[
https://issues.apache.org/jira/browse/TINKERPOP3-903?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14972675#comment-14972675
]
ASF GitHub Bot commented on TINKERPOP3-903:
-------------------------------------------
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.
> Fix empty buffer return upon buffer capacity exceeded
> -----------------------------------------------------
>
> Key: TINKERPOP3-903
> URL: https://issues.apache.org/jira/browse/TINKERPOP3-903
> Project: TinkerPop 3
> Issue Type: Bug
> Components: driver, server
> Affects Versions: 3.0.2-incubating
> Reporter: stephen mallette
> Assignee: stephen mallette
> Fix For: 3.1.0-incubating
>
>
> Discussion: https://groups.google.com/forum/#!topic/gremlin-users/zWGAn-oS5PQ
> Return the underlying byte array output stream which will always contain the
> full serialized object.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)