CNI vs JNI in performance?

Andrew Haley aph@redhat.com
Tue Oct 12 09:29:00 GMT 2004


Martin Egholm Nielsen writes:
 > 
 > >>I've browsed the archives, but cannot find the answer:
 > >>Which is the better to use: CNI or JNI?
 > >>This is regarding rapid invocations from Java (for talking with a
 > >>rs485-device) transferring byte-arrays back and forth...
 > >>I was wondering which method has the most overhead, etc...
 > > CNI is the one with less overhead, its just not so portable as only 
 > > gcj/g++ support it yet. "Portability" is the domain of JNI for now.
 > And this is with respect to both speed and memory?
Yes: it's just a straightforward call.
Andrew.


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /