Re: Java vs C/Objective-C performance question
Re: Java vs C/Objective-C performance question
- Subject: Re: Java vs C/Objective-C performance question
- From: Marcel Weiher <email@hidden>
- Date: Tue, 18 Mar 2003 09:34:53 +0100
On Tuesday, March 18, 2003, at 01:54 Uhr, Sheehan Olver wrote:
<snip many great responses on the reasons for the unexpected results>
So where is the barrier between when its a good idea performance-wise
to write code in C
Not sure what you mean with "barrier". The biggest "barrier" to C
code that performs well is turning on optimization in the compiler...
as opposed to java (forgetting Objective-C for the moment)? I guess
I'm just confused as to what people mean when they say java is slow,
or is this just a myth?
It is slow, despite the fact that the JIT does OK on some non-realistic
micro-benchmarks (and even there C was faster once optimization was
turned on). It also requires huge amounts of memory, which not only
slows the java process itself down, but imposes a heavy penalty on the
entire system.
Or are there certain areas where this is true, like Swing GUI?
Swing is said to be particularly horrible, not just from a perfomrnace
perspective.
Also, does anyone know the performance difference between Java and
Objective-C Objects?
An object does not have performance. Can you specify your question?
I seem to get the impression that the Garbage Collector might
actually help performance,
Sure. In some circumstance it can do a very good job. Like
non-realistic micro-benchmarks.
especially in cases where there's a loop where autorelease doesn't
get the chance to work.
Er, autorelease is not a performance-enhancer, so this doesn't make
sense.
Marcel
--
Marcel Weiher Metaobject Software Technologies
email@hidden www.metaobject.com
Metaprogramming for the Graphic Arts. HOM, IDEAs, MetaAd etc.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.