Google Groups Home
Help | Sign in
Message from discussion Optimise my ray tracer
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Jon Harrop  
View profile
 More options 11 Jun 2005, 18:27
Newsgroups: comp.lang.java.programmer
From: Jon Harrop <use...@jdh30.plus.com>
Date: Sat, 11 Jun 2005 18:27:03 +0100
Local: Sat 11 Jun 2005 18:27
Subject: Re: Optimise my ray tracer

Tor Iver Wilhelmsen wrote:
> Jon Harrop <use...@jdh30.plus.com> writes:
>> With the vector class declared static (what exactly does this do?)

> This alone tells us you really do not know Java.

Yes, I do not know Java, as I stated in my original post. That's why I'm
here, asking for advice.

I'm not actually getting any useful advice though. So far, lots of people
have said that Java has a startup time, suggested minor performance tweaks
which fail to make the program 5x faster and told me that I don't know
Java.

> The point is that you really should not take startup time into
> consideration when considering how "fast" a language is.

For the umpteenth time, I have taken startup time into account. I am doing
measurements over an order of magnitude variation in total running time and
startup appears to be insignificant (~0.2s out of 30s total running time).
Java is still vastly slower than everything else. Is this representative of
Java or am I doing something daft?

> It would be
> akin to testing whether the Windows "calc" program is faster than
> using pencil + paper to add two numbers, and then take Windows startup
> time into account. Java is designed to run apps over a period of time,
> you don't and draw the wrong conclusion.

Yes, I am trying very hard to draw the appropriate conclusion. Currently,
the conclusion is that Java is the second most verbose, slowest to compile
and the slowest to run out of the languages that I have tested (C, C++,
OCaml, SML, Fortran).

--
Dr Jon D Harrop, Flying Frog Consultancy
http://www.ffconsultancy.com


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google