hama-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Edward J. Yoon (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HAMA-856) Optimize the BSPMessageBundle
Date Thu, 06 Feb 2014 07:48:11 GMT

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

Edward J. Yoon commented on HAMA-856:

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

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

View raw message