Closed dan2097 closed 6 years ago
Type mapping incurrs a performance penalty with JNA. ~15% performance gains are achievable by using Pointer rather than subclasses of PointerType, and by using byte[] rather than String.
With these speedups, JNI-Inchi is still slightly faster (~35 second vs ~38 seconds for 90k structures from ChEBI), but that's probably good enough.
Type mapping incurrs a performance penalty with JNA. ~15% performance gains are achievable by using Pointer rather than subclasses of PointerType, and by using byte[] rather than String.