Patch optimisation, Prepend, Messages, Sprintf, that kind of stuff.


    Sep 12 2014 | 8:38 pm
    Hi,
    I often use prepend, append, sprintf to transform my messages.
    I am wondering if there are an advantages to using prepend over a message object. Let's say "prepend scale" versus a message object saying "scale $1".
    Also, almost every objects have inlets that lets you change how data coming in from the left most inlet is transformed. How come prepend and append don't? I often need to send a message through "prepend set" so I can change what will be prepended/appended to my other message. This is getting messy.
    At this point the pack/pak objects do a similar job. There are probably a bunch of other ways to achieve similar results and I know in a small patch it doesn't really matter... but what about a larger scale project? I like to standardize the way I work so it's easier to read afterward and If I'm going to stick to a method to prepend or append elements to a list, I might as well adopt the most efficient way of doing it.
    How do you do it? Do you have other "tricks" that could help me? Is there any resource on that topic?