This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: CNI vs JNI in performance?
- From: Michael Koch <konqueror at gmx dot de>
- To: java at gcc dot gnu dot org
- Cc: Martin Egholm Nielsen <martin at egholm-nielsen dot dk>
- Date: Tue, 12 Oct 2004 09:31:24 +0200
- Subject: Re: CNI vs JNI in performance?
- References: <ckg08e$rk9$1@sea.gmane.org>
On Tuesday 12 October 2004 09:14, Martin Egholm Nielsen wrote:
> Hi there,
>
> 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.
Michael