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

Jonathan Ellis commented on CASSANDRA-3271:
-------------------------------------------

Also: bounds checking for *each byte* seems pretty heavyweight.  Feels like 
we'd want to add setBytes/getBytes for arrays (that just does one bounds check 
outside the inner loop), and update MemoryOutputStream to use that.  (I realize 
this is not a new problem for the Unsafe Memory per se.)
                
> off-heap cache to use sun.misc.Unsafe instead of JNA
> ----------------------------------------------------
>
>                 Key: CASSANDRA-3271
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3271
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Core
>            Reporter: Pavel Yaskevich
>            Assignee: Pavel Yaskevich
>            Priority: Minor
>             Fix For: 1.1
>
>         Attachments: CASSANDRA-3271.patch
>
>
> Instead of requiring JNA for off-heap caches we should try to use 
> sun.misc.Unsafe.

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

        

Reply via email to