the concept of java being slower than C++ must be fixed. imho java is also 
built under C so it should be as fast as C or C++. according to my experience, 
what makes java 'looks slow' is the thing called Garbage Collector. its a 
blessing yet a curse. we 'dont' have to do memory allocation but in return the 
vm must do memory cleanup once in a while. the 'slow' part is when the memory 
cleanup take action. 

i've tried to do a simple but mass collision detection in java and its 
annoyingly slow in a certain time (when the garbage collector do the cleaning), 
but damn fast at the rest of it. 


================================= 
http://www.svnstrk.blogspot.com  
=================================


--- On Mon, 5/4/09, Brett McCoy <[email protected]> wrote:

> From: Brett McCoy <[email protected]>
> Subject: Re: [c-prog] Re: C++ or C#?
> To: [email protected]
> Date: Monday, May 4, 2009, 10:05 PM
> On Mon, May 4, 2009 at 9:34 PM, Thomas Hruska
> <[email protected]> wrote:
> 
> 
> I also see the claim constantly that Java can run as fast
> as, if not
> faster than, a C++ program, but have yet to see this in the
> real
> world. The startup time alone with a big Java multithread
> app is
> painful compared with a similar big multithreaded C++ app.
> 
> But again, it may probably be bias :-)
> 
> -- Brett
> ------------------------------------------------------------
> "In the rhythm of music a secret is hidden;
>    If I were to divulge it, it would overturn the
> world."
>               -- Jelaleddin Rumi


      

Reply via email to