You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hama.apache.org by "Edward J. Yoon (JIRA)" <ji...@apache.org> on 2014/02/06 08:56:09 UTC

[jira] [Comment Edited] (HAMA-856) Optimize the BSPMessageBundle

    [ https://issues.apache.org/jira/browse/HAMA-856?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13893140#comment-13893140 ] 

Edward J. Yoon edited comment on HAMA-856 at 2/6/14 7:54 AM:
-------------------------------------------------------------

{code}
  private HashMap<String, List<M>> messages = new HashMap<String, List<M>>();
  private HashMap<String, Class<M>> classCache = new HashMap<String, Class<M>>();
{code}

1) Current implementation assume that we support the multiple message types. But it's impossible. So, user should have to create own custom writable message class that support multiple types, like GraphJobMessage.

2) I propose that we use byte array instead of objects. This will improve the RPC communication (serialization/deserialization) overhead (async) and memory usage. Instead of getMessages() returns List<M>, we'll need to provide the iterator().


was (Author: udanax):
{code}
  private HashMap<String, List<M>> messages = new HashMap<String, List<M>>();
  private HashMap<String, Class<M>> classCache = new HashMap<String, Class<M>>();
{code}

1) Current implementation assume that we support the multiple message types. But it's impossible. So, user should have to create own custom writable message class that support multiple types, like GraphJobMessage.

2) I propose that we use byte array instead of objects. This will improve the RPC communication (serialization/deserialization) overhead and memory usage. Instead of getMessages() returns List<M>, we'll need to provide the iterator().

> Optimize the BSPMessageBundle
> -----------------------------
>
>                 Key: HAMA-856
>                 URL: https://issues.apache.org/jira/browse/HAMA-856
>             Project: Hama
>          Issue Type: Improvement
>          Components: bsp core
>            Reporter: Edward J. Yoon
>            Assignee: Edward J. Yoon
>             Fix For: 0.7.0
>
>
> For memory efficiency.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)