XML Feeds

.

[java-dev] Re: Re: How efficient is coding objects using Java?

Adam Stark adam.stark at elec.qmul.ac.uk
Fri Oct 26 10:02:16 MDT 2007


Hi volker,

Yes, that is a good suggestion and would make it run much faster. I also found another problem. This is maybe very obvious to more experienced Java users but I am new to using Java for signal processing: I found that, in my loop, when I calculated the square of a number using:

Math.pow(x,2);

my function took 19ms to do it's calculations. However, when I used:

x*x

the processing time was reduced to just 3ms.

Anyway, thank you everyone for your help,

Adam


More information about the java-dev mailing list