XML Feeds

.

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

topher lafata topher at topher.com
Wed Oct 24 11:23:43 MDT 2007


also...


Using the benchmark message allows you to quantify any optimizations  
that you might be making
and could be helpful if you are not aware of it. See the mxj~  
examples for use of the benchmark
message.


T

On Oct 24, 2007, at 07:54 AM, Adam Stark wrote:

>
> Hi,
>
> I have just written an MSP pitch detector object in java. It works  
> perfectly but has a very high load on the CPU. In fact, if I use a  
> signal vector size of more than 256 it causes clicking artefacts in  
> the audio. The code isn't really that big and I am using a brand  
> new intel mac book 2.2 GHz machine.
>
> Is this because of some speed limitation of using mxj quickie to  
> build java objects? How could I improve the speed?
>
> I am normally a C programmer and have coded much much larger things  
> that run in real-time as VST plug-ins for example - and they  
> generally are not that much of a burden on the CPU. I know Java is  
> slower than C but I didn't expect it to be quite so limiting, is  
> there something I am doing wrong?
>
> Alternatively, if anyone could point me to a good introduction to  
> programming Max/MSP objects in C I would be very grateful  
> (apologies as this question prob should go in the other forum but  
> the first question should be here...).
>
> I'd be very happy if someone could point me in the right direction,
>
> Many thanks,
>
> Adam
> _______________________________________________
> java-dev mailing list
> java-dev at cycling74.com
> http://www.cycling74.com/mailman/listinfo/java-dev



More information about the java-dev mailing list