You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directmemory.apache.org by "Hiram Chirino (Created) (JIRA)" <ji...@apache.org> on 2011/12/01 17:36:40 UTC

[jira] [Created] (DIRECTMEMORY-37) Update the MemoryManager API so it can be used in conjunction with NIO to provide efficient buffer management

Update the MemoryManager API so it can be used in conjunction with NIO to provide efficient buffer management
-------------------------------------------------------------------------------------------------------------

                 Key: DIRECTMEMORY-37
                 URL: https://issues.apache.org/jira/browse/DIRECTMEMORY-37
             Project: Apache DirectMemory
          Issue Type: New Feature
            Reporter: Hiram Chirino


If MemoryManager implemented something like a ByteBuffer allocate(int size) then I could be used to directly transfer data to/from Files and Sockets without having to first copy them to a byte[].

I'm not talking about using the ByteBuffer.allocate call. I'm talking about adding a method to MemoryManager:

ByteBuffer bb = MemoryManager.allocate(1024*1024);
So that I can directly modify the ByteBuffer using Channels to avoid a memory copy.. Compare this to using the MemoryManager store, update, and retrieve calls. They all force you to work with byte[]s so you end up doing a memory copies into and out of direct memory.

This was originally reported at: https://github.com/raffaeleguidi/DirectMemory/issues/49#issuecomment-2661141

--
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

        

[jira] [Updated] (DIRECTMEMORY-37) Update the MemoryManager API so it can be used in conjunction with NIO to provide efficient buffer management

Posted by "Olivier Lamy (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DIRECTMEMORY-37?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Olivier Lamy updated DIRECTMEMORY-37:
-------------------------------------

    Fix Version/s: 0.6.0
    
> Update the MemoryManager API so it can be used in conjunction with NIO to provide efficient buffer management
> -------------------------------------------------------------------------------------------------------------
>
>                 Key: DIRECTMEMORY-37
>                 URL: https://issues.apache.org/jira/browse/DIRECTMEMORY-37
>             Project: Apache DirectMemory
>          Issue Type: New Feature
>            Reporter: Hiram Chirino
>             Fix For: 0.6.0
>
>
> If MemoryManager implemented something like a ByteBuffer allocate(int size) then I could be used to directly transfer data to/from Files and Sockets without having to first copy them to a byte[].
> I'm not talking about using the ByteBuffer.allocate call. I'm talking about adding a method to MemoryManager:
> ByteBuffer bb = MemoryManager.allocate(1024*1024);
> So that I can directly modify the ByteBuffer using Channels to avoid a memory copy.. Compare this to using the MemoryManager store, update, and retrieve calls. They all force you to work with byte[]s so you end up doing a memory copies into and out of direct memory.
> This was originally reported at: https://github.com/raffaeleguidi/DirectMemory/issues/49#issuecomment-2661141

--
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

        

[jira] [Reopened] (DIRECTMEMORY-37) Update the MemoryManager API so it can be used in conjunction with NIO to provide efficient buffer management

Posted by "Olivier Lamy (Reopened) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DIRECTMEMORY-37?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Olivier Lamy reopened DIRECTMEMORY-37:
--------------------------------------

      Assignee:     (was: Raffaele P. Guidi)

reopen to set fix version field
                
> Update the MemoryManager API so it can be used in conjunction with NIO to provide efficient buffer management
> -------------------------------------------------------------------------------------------------------------
>
>                 Key: DIRECTMEMORY-37
>                 URL: https://issues.apache.org/jira/browse/DIRECTMEMORY-37
>             Project: Apache DirectMemory
>          Issue Type: New Feature
>            Reporter: Hiram Chirino
>
> If MemoryManager implemented something like a ByteBuffer allocate(int size) then I could be used to directly transfer data to/from Files and Sockets without having to first copy them to a byte[].
> I'm not talking about using the ByteBuffer.allocate call. I'm talking about adding a method to MemoryManager:
> ByteBuffer bb = MemoryManager.allocate(1024*1024);
> So that I can directly modify the ByteBuffer using Channels to avoid a memory copy.. Compare this to using the MemoryManager store, update, and retrieve calls. They all force you to work with byte[]s so you end up doing a memory copies into and out of direct memory.
> This was originally reported at: https://github.com/raffaeleguidi/DirectMemory/issues/49#issuecomment-2661141

--
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

        

[jira] [Commented] (DIRECTMEMORY-37) Update the MemoryManager API so it can be used in conjunction with NIO to provide efficient buffer management

Posted by "Raffaele P. Guidi (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRECTMEMORY-37?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13161177#comment-13161177 ] 

Raffaele P. Guidi commented on DIRECTMEMORY-37:
-----------------------------------------------

Thanks, this would be a nice addition
                
> Update the MemoryManager API so it can be used in conjunction with NIO to provide efficient buffer management
> -------------------------------------------------------------------------------------------------------------
>
>                 Key: DIRECTMEMORY-37
>                 URL: https://issues.apache.org/jira/browse/DIRECTMEMORY-37
>             Project: Apache DirectMemory
>          Issue Type: New Feature
>            Reporter: Hiram Chirino
>
> If MemoryManager implemented something like a ByteBuffer allocate(int size) then I could be used to directly transfer data to/from Files and Sockets without having to first copy them to a byte[].
> I'm not talking about using the ByteBuffer.allocate call. I'm talking about adding a method to MemoryManager:
> ByteBuffer bb = MemoryManager.allocate(1024*1024);
> So that I can directly modify the ByteBuffer using Channels to avoid a memory copy.. Compare this to using the MemoryManager store, update, and retrieve calls. They all force you to work with byte[]s so you end up doing a memory copies into and out of direct memory.
> This was originally reported at: https://github.com/raffaeleguidi/DirectMemory/issues/49#issuecomment-2661141

--
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

        

[jira] [Resolved] (DIRECTMEMORY-37) Update the MemoryManager API so it can be used in conjunction with NIO to provide efficient buffer management

Posted by "Olivier Lamy (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DIRECTMEMORY-37?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Olivier Lamy resolved DIRECTMEMORY-37.
--------------------------------------

    Resolution: Fixed
    
> Update the MemoryManager API so it can be used in conjunction with NIO to provide efficient buffer management
> -------------------------------------------------------------------------------------------------------------
>
>                 Key: DIRECTMEMORY-37
>                 URL: https://issues.apache.org/jira/browse/DIRECTMEMORY-37
>             Project: Apache DirectMemory
>          Issue Type: New Feature
>            Reporter: Hiram Chirino
>             Fix For: 0.6.0
>
>
> If MemoryManager implemented something like a ByteBuffer allocate(int size) then I could be used to directly transfer data to/from Files and Sockets without having to first copy them to a byte[].
> I'm not talking about using the ByteBuffer.allocate call. I'm talking about adding a method to MemoryManager:
> ByteBuffer bb = MemoryManager.allocate(1024*1024);
> So that I can directly modify the ByteBuffer using Channels to avoid a memory copy.. Compare this to using the MemoryManager store, update, and retrieve calls. They all force you to work with byte[]s so you end up doing a memory copies into and out of direct memory.
> This was originally reported at: https://github.com/raffaeleguidi/DirectMemory/issues/49#issuecomment-2661141

--
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