RE: Mixing Obj-C & Java in same Cocoa app?
RE: Mixing Obj-C & Java in same Cocoa app?
- Subject: RE: Mixing Obj-C & Java in same Cocoa app?
- From: "Smith, Bradley" <email@hidden>
- Date: Mon, 17 Sep 2001 08:31:02 +0100
>
(a) with compiled Java/Cocoa (!forget swing!), there should
>
be a very little
>
penalty over ObjC (actually, the only two reasons I see for
>
compiled Java
>
being slower is the GC, and perhaps that Java does not
>
support structs, so
>
things like NSRect have to be objects; none of them should be that
>
important);
AFAIK *all* Java is compiled, but into byte code - not native, which means a
JVM has to interpret at runtime. This is clearly going to be slower that
Obj-C compiled into native PPC instructions. Nothing you can do about it.
Brad