8000 NIO to allow GC during JNI and access to special memory regions · Issue #58 · fommil/netlib-java · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Nov 10, 2017. It is now read-only.
This repository was archived by the owner on Nov 10, 2017. It is now read-only.
NIO to allow GC during JNI and access to special memory regions #58
Open
@almson

Description

@almson

It would be nice if netlib-java exposed NIO interfaces to its routines.

Direct ByteBuffers (and FloatBuffer, DoubleBuffer, etc) have the following neat features:

  • zero-copy between Java and native code, giving 100% performance parity with C.
  • as fast as primitive arrays
  • can memory-map files (Should be possible to do calculations directly on huge matrices residing on SSDs)
  • compatibility with code that already uses them (I've been using jcuda and jcublas and use direct bytebuffers, and have to incure double copy overhead to use an array-based jni api)
  • simple to expose

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0