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: Dietrich Epp <email@hidden>
- Date: Tue, 18 Mar 2003 11:23:51 -0800
On Tuesday, March 18, 2003, at 04:58 AM, petite_abeille wrote:
On Tuesday, Mar 18, 2003, at 09:34 Europe/Zurich, Marcel Weiher wrote:
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's a myth. Your application performance has very little to do with
what language you happen to be using. And as far as 'raw performance'
(e.g. how long does it take to loop through five millions objects),
they are useless as they have nothing to do with real applications.
A myth? So I should be able to write a FFT algorithm in bash then?
(And none of the bull about bash not being a programming language... if
it weren't a programming language, it wouldn't be turing-complete)
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.
Sure... and my assembler is faster and slimmer that your C... but my
custom build microchip is even faster... hehe... :-)
Java is very similar to Objective C from a user perspective (here
user=programmer). The differences between C and assembler are much
more great, and the step from assembler to hardware greater still.
Also, the performance difference between assembler and C is not
significant for most programs, except perhaps innner loops, which are
usually library functions anyway. The point is that Java is needlessly
unperformant*.
http://www.internalmemos.com/memos/memodetails.php?memo_id=1321
*Yes, I know unperformant is not in most dictionaries, if any.
_______________________________________________
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.