I'd be interested in knowing what makes you think it is slow ?
I've recently done a lot of using JNI, and found that on a quick enough machine (2.8GHz) there was barely any time lag ... obviously some, but not a lot ... compared to pure C solutions.
Memory usuage was a LOT higher using JNI, but then thats not what you're questioning.
I agree that calling C code from Java is quite fast. But calling Java code from C is a lot slower (probably because you need to attach the thread to the JVM). The problem is that I need to do this call quite often (around 3000 times a second). So any gain in performance is welcome...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.