Alessandro Presta created GIRAPH-531:
----------------------------------------

             Summary: EdgeIterables#getEdges() should reuse Edge objects
                 Key: GIRAPH-531
                 URL: https://issues.apache.org/jira/browse/GIRAPH-531
             Project: Giraph
          Issue Type: Improvement
            Reporter: Alessandro Presta
            Assignee: Alessandro Presta


Since some of our vertex implementations don't allow for mutating or keeping 
references to edges returned by Vertex#getEdges(), we can consider that part of 
the API and exploit it in other places.
EdgeIterables#getEdges() currently creates a new Edge object at each iteration.
We can reuse the object for efficiency.

Note: this issue may become irrelevant depending on how we refactor the Vertex 
API (e.g. no distinction between Vertex and SimpleVertex).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to