[
https://issues.apache.org/jira/browse/HAMA-704?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13571239#comment-13571239
]
Edward J. Yoon edited comment on HAMA-704 at 2/5/13 11:35 AM:
--------------------------------------------------------------
Comparing was the reason of slow performance. Below will improve the
performance.
{code}
@Override
public int compareTo(GraphJobMessage that) {
if (this.flag != that.flag) {
return (this.flag < that.flag) ? -1 : 1;
} else {
if (this.isVertexMessage()) {
return this.getVertexId().toString()
.compareTo(that.getVertexId().toString());
} else {
return 0;
}
}
}
{code}
was (Author: udanax):
Comparing was the reason of slow performance.
{code}
@Override
public int compareTo(GraphJobMessage that) {
if (this.flag != that.flag) {
return (this.flag < that.flag) ? -1 : 1;
} else {
if (this.isVertexMessage()) {
return this.getVertexId().toString()
.compareTo(that.getVertexId().toString());
} else {
return 0;
}
}
}
{code}
> Optimization of memory usage during message processing
> ------------------------------------------------------
>
> Key: HAMA-704
> URL: https://issues.apache.org/jira/browse/HAMA-704
> Project: Hama
> Issue Type: Improvement
> Components: graph
> Reporter: Edward J. Yoon
> Assignee: Edward J. Yoon
> Priority: Critical
> Fix For: 0.6.1
>
> Attachments: mytest.patch, patch.txt, removeMsgMap.patch
>
>
> <vertex, message> map seems consume a lot of memory. We should figure out an
> efficient way to reduce memory.
--
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