You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directmemory.apache.org by "Daniel Manzke (Commented) (JIRA)" <ji...@apache.org> on 2012/02/20 00:38:35 UTC

[jira] [Commented] (DIRECTMEMORY-64) Serializer should directly write

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

Daniel Manzke commented on DIRECTMEMORY-64:
-------------------------------------------

After a first look in the code, this will be hard, do to the fact, that you have to know the size of your object. So DM can allocate the right amount of memory.

But I think this leads to a real problem, because you often don't know the size of an object. Think about files, which will be uploaded in chunks, where the total count of bytes is unknown and expect files.
                
> Serializer should directly write
> --------------------------------
>
>                 Key: DIRECTMEMORY-64
>                 URL: https://issues.apache.org/jira/browse/DIRECTMEMORY-64
>             Project: Apache DirectMemory
>          Issue Type: Wish
>            Reporter: Daniel Manzke
>
> The serializers are returning a byte[] which means, the value has to fit into the memory. This also means, that DM can't be used for a file storage. The serializers should directly write the object into the storage location.
> This would allow to use stuff like nio and other things.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira