Re: crushing java

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Jon Skeet [C# MVP] (skeet_at_pobox.com)
Date: 06/17/04


Date: Thu, 17 Jun 2004 11:28:00 +0100

Lloyd Dupont <ld@NewsAccount.galador.net> wrote:
> of course the compiler don't just remove a call.
> it's incorrect to remove a function call !

Not if the JIT compiler absolutely knows that it can have no effect on
anything other than performance.

> at most does it inline it.

Really? I looked at the JITted code with cordbg. Did you?
I tried running your code without the call to Math.Cos, and got the
same results. Did you? Are you saying that Math.Cos calls are
absolutely free?

> your reaction just proved you to be sentimental and self blinded

Whatever you say...

> anyway, this proof can be canceled by another similar test:

On my box, that shows .NET throwing exceptions to be significantly
slower than Java. Of course, any system which is throwing hundreds of
thousands of exceptions ought to look at its design very carefully
anyway.

There are areas where .NET is faster than Java.
There are areas where Java is faster than .NET.
I really don't see why that's so hard to accept...

-- 
Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too


Relevant Pages

  • Re: crushing java
    ... Not if the JIT compiler absolutely knows that it can have no effect on ... I looked at the JITted code with cordbg. ... thousands of exceptions ought to look at its design very carefully ... There are areas where .NET is faster than Java. ...
    (microsoft.public.dotnet.framework)
  • Re: crushing java
    ... >> of course the compiler don't just remove a call. ... I just increased N and see it was slower. ... > thousands of exceptions ought to look at its design very carefully ... > There are areas where .NET is faster than Java. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: crushing java
    ... >> of course the compiler don't just remove a call. ... I just increased N and see it was slower. ... > thousands of exceptions ought to look at its design very carefully ... > There are areas where .NET is faster than Java. ...
    (microsoft.public.dotnet.framework)
  • Re: Cpp Considered Harmful
    ... >> programming language, the compiler, the IDE, the libraries, etc. ... source file, the implementation shall locate the declaration, (and ... to name one of the defining source files on the command line that initiates ... The counterpart to this in Java is accomplished using the following: ...
    (comp.lang.cpp)
  • Re: wie Array für statische Methoden
    ... > auf gar keinen Fall Java empfehlen;) ... Ich hab mal mit virtuellen Methoden auf einem Microkontroller experimentiert und bin zu dem Schluss gekommen: ... > Es ist ja gerade der Vorteil bei Java einen Compiler ... > Dinge zu optimieren, ...
    (de.comp.lang.java)