I fixed my problems with caching Bridj JNI objects myself. I put some notes here: https://stackoverflow.com/questions/45770502/how-to-properly-cache-bridj-jni-objects-in-java-scala
On Tuesday, 22 August 2017 16:57:15 UTC+2, Daniel Korzekwa wrote: > > I'm looking for some guidelines on caching and reusing Bridj JNI objects > between multiple JNI calls. I found that caching JNI objects vastly speeds > up calling C functions over JNI but it also causes some numerical stability > issues. Basically, sometimes the same C function with the same arguments > produces different results. > > > I found this page discussing how to cache JNI objects. > http://www.latkin.org/blog/2016/02/01/jni-object-lifetimes-quick-reference/ > > > Does anyone do it in BridJ, any hints on how to cache primitives, structs, > pointers, etc.? > > > Link to the same question on stackoverflow: > https://stackoverflow.com/questions/45770502/how-to-properly-cache-bridj-jni-objects-in-java-scala > > -- You received this message because you are subscribed to the Google Groups "NativeLibs4Java" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
