C vs MSP efficiency?

Jan 16, 2007 at 8:30pm

C vs MSP efficiency?

Hello,

I’m new to development, and was wondering whether it’s worth me getting part of my patch recoded in to C as an external?

The CPU intensive part of my patch contains around 25 msp objects (mostly phasor~, zigzag~, sah~, pong~, buffer~, and index~). One instance of this runs at about 4% of my CPU, but using poly I would like 20 or more instances but I obviously soon run out of CPU. If I could get someone to build an external to do this part of my patch would it make a significant difference? Or would it only make sense if my WHOLE patch was recoded in C?

Many thanks,
Simon

#29742
Jan 16, 2007 at 10:27pm

The question is where your patch is spending the most time. If you
are spending most of the time sending signals then maybe rewriting
some of your patch makes sense. If not, it could be that what you
want to accomplish is just processor intensive. I would recommend
that you take a look at optimizing your cpu intensive patch’s logic
first, and code an extern only as a last resort.

_Mark

On Jan 16, 2007, at 12:30 PM, simon adcock wrote:

>
> Hello,
>
> I’m new to development, and was wondering whether it’s worth me
> getting part of my patch recoded in to C as an external?
>
> The CPU intensive part of my patch contains around 25 msp objects
> (mostly phasor~, zigzag~, sah~, pong~, buffer~, and index~). One
> instance of this runs at about 4% of my CPU, but using poly I would
> like 20 or more instances but I obviously soon run out of CPU. If I
> could get someone to build an external to do this part of my patch
> would it make a significant difference? Or would it only make sense
> if my WHOLE patch was recoded in C?
>
> Many thanks,
> Simon

#93476

You must be logged in to reply to this topic.