Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Invalid
-
None
-
None
-
None
-
None
Description
I am doing some tests with giraph and I am having some memory problems. While I was browsing through the codebase I saw that you are allocating a new ArrayList (which has an underlying array of 10 elements) for each Vertex, that has no Messages to be delivered. That's a waste of memory and time. This patch replaces it with the EMPTY_LIST of the Collections utility class.