Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Performance: Direct mapped library and callbacks #33
Thanks for the good work!
Would it not be a performance boost to use directly mapped library (LibFuse) and FileSystem callbacks (Options: Native.CB_OPTION_DIRECT) to boost performance of the calls?
By using JNA's: Native.register instead of loadLibrary and using the Native.CB_OPTION_DIRECT
It would ofcause require some refactoring of the code.
You mention that allocating direct byte buffers is a significant bottleneck, and those are known to be slow.
It's possible that can be mitigated by changing
into something more like
The JVM is pretty efficient with transient byte arrays, so it might not make sense to pools those.