Thanks. Unfortunately this is a necessity for the intended purpose I bought Keybaord Maestro. I'll explain the purpose of my macros, and why the redundancy is necessary without hopefully being too longwinded...
I compose for TV full time, I have a ton of instruments and plugins I need to manage in order to finish any one specific project. Hunting for instruments, instantiating plugins for audio tasks, recalling presets; these all become bottlenecks once you have a large collection of instruments/effects you have to manage.
I've been building macros to load specific instruments, apply specific audio effect chains, and essentially make my production process as automated as possible because deadlines get shorter while and demands get higher year over year... That's an unfortunate and unavoidable reality in film/tv post production...
I use an ios app with Keyboard Meastro support built directly into it (Metagrid). This allows me to map macros to buttons, allowing me to load many of the unique instruments mentioned above. This also allows me to map frequently used audio effects, and apply the necessary effects across all busses from the click of a button.
Basically the short version is redundant code is unavoidable as each instrument/audio effect/various-other-moving-parts-of-the-process that I've mapped to Metagrid all require unique buttons that call on unique macros... So if I have a folder of 40 macros that load various instruments for me with a button press this requires me to have 40 unique macros.
As far as your comment... If what you've found is accurate this seems to suggest that the KM Editor's code could use some optimizations. I push my CPU tot the edge more or less daily on Logic, lagginess hasn't been an issue once on this machine. Frankly lagginess isn't something I've had an issue with in general in Marcos for years now...
The macros themselves run fine. But the editor is painfully slow and laggy. If the application required to build the macros themselves is bottlenecked it essentially negates some of the benefit KM should otherwise bring to the table.
Again, not being hyperbolic... Spending an hour to tweak and complete a macro that should have taken me no more than 10 minutes seems like this should be a red flag that development might want to investigate this... And if reusing the same code in multiple macros (assuming this is correct) can lead to degraded performance this seems like an even bigger red flag worth looking into. All I know is the editor was snappy on day one, has slowly become laggy, and the last week or so has gotten to the point where I'm seeing beach balls or stalls between any one single editing action... Which again includeds actions that shouldn't be a bottleneck such as entering text into the insert text or type a keystroke action.
I'll try the terminal commands @peternlewis suggested, I'm just hoping this is on developments radar... The TLDR version is you can't build working macros without a functioning macro editor... Thankfully the macros themselves run fine, but they've become pretty difficult to build in a very short time...
Appreciate everyone's input so far.. Cheers.