So my main performance patch is getting big. Like really big. It's 64 files worth of stuff now (a lot of polys and soundfiles) and the main file itself is 16mb.
I've been trying to optimize as I go, but I there's a lot I don't know about this stuff, so I'm just taking stabs in the dark.
Another thing is that as big as the patch is, there's no abstractions at all (only polys).
So my first(main) question is about abstractions I guess. Is it good practice to make everything abstractable into an abstraction? I find myself using certain things over and over, and certain parts of the patch are duplicates (ie the main looper code). So should I just make them abstractions? How small or big should I go? As in should I make the playback section of my looper an abstraction, or make the whole of it (nearly the whole screenshot above) an abstraction?
Is the use of abstractions this way (and in a patch this big) mainly for ease of coding, or is it more efficient too?
I've leaned away from using them as I find myself often going back and editing/fixing things, and I hate having to go back and forth to edit things (all of my polys are pretty much static effects, so I rarely touch the code once it was wrapped up).
The next question is about general patching and structure. There's oodles of send/receives in my patch. Some are from other sections of the patch (OSC/MIDI control sections etc..), but a bunch are within the screenshot amount of space. My original (poor) thinking was that when I need to duplicate the section, I can copy/paste and then rename the send/receives (as seen in the screenshot). That's not a great idea, but it does make troubleshooting and visibility better as I know what's what by looking, and don't have to click/trace cables.
So I guess the question here is, is having so many send/receives (not audio ones) inefficient?
Lastly, buffers. I have a bunch of buffers throughout the patch that are holding either impulse responses, or tiny samples for triggering etc.. These samples aren't big by any means, but does taking up buffer/ram space effect performance much? (in terms of CPU/processing, I'm not hitting or near my total RAM available). It's only 2.5mb total (over 23 files), but this is likely going to go up. Is it worth the work to make my reverb/convolution sections just 1 buffer that loads samples dynamically (as opposed to how I'm doing it now, with all buffers loaded, and I change the code dynamically).
In total my patch idles between 20-30% (with all polys muted etc..) and can go as high as 70 or so (probably higher as there's some high CPU polys in there, but I rarely use them all at once). I've mainly used an I/O vector size of 128, but when I use kontakt I have to go up to 256 (or even 512) or I get crunching coming out of kontakt (which is a bummer). My patch is only getting bigger, so I want to do as much as I can to keep it lean on the way up.
There also seems to be very little in terms of 'general coding practices for efficiency' on the forum (at least not 5 years old and/or jitter related).