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.
Open
Description
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
Labels
No labels