Re: Do you still choose java????
From: Peter Ashford (me_at_here.there.com)
Date: 11/28/03
- Next message: David Postill: "Re: Displaying DB records in Servlet using a method"
- Previous message: Mike: "Re: Do you still choose java????"
- In reply to: Mike: "Re: Do you still choose java????"
- Next in thread: Roedy Green: "Re: Do you still choose java????"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 28 Nov 2003 13:54:35 +1300
Mike wrote:
> Tim <nocomment@rogers.com> wrote in message news:<qHnwb.16995$X2W1.11742@news04.bloor.is.net.cable.rogers.com>...
>
>
>>Since Java is not compiled to machine
>>code, it my not be as efficient as some languages that do.
>
>
> Very common mistake made by many. The Java Virtual Machine translates
> the Java byte codes into real cpu machine language. It's called JIT
> (Just In Time) compilation.
> In simple algorithms I've seen Java perform 3 times faster than
> optimized C++.
> Overal, Java is slower than C++, yes, but not as much as people that
> think that Java is interpreted.
>
> To reduce startup time, the Java Virtual Machine can both interpret
> the code, and run the compiled code. The first time around it
> interprets the code to prevent the user from seeing a visual response
> delay due to the compilation time. It then decides which parts of the
> code can benefit the most from machine language compilation.
> You can influence the compilation behaviour through a number of
> command line options.
And, you can statically compile Java as well. Although, it's not worth
doing in general for efficiency reasons as the hotspot VMs produce very
swift code, as you mentioned.
- Next message: David Postill: "Re: Displaying DB records in Servlet using a method"
- Previous message: Mike: "Re: Do you still choose java????"
- In reply to: Mike: "Re: Do you still choose java????"
- Next in thread: Roedy Green: "Re: Do you still choose java????"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|