sowbug / groove

A digital audio workstation (DAW) engine.
Other
15 stars 0 forks source link

Investigate returning messages via FnMut #134

Closed sowbug closed 1 year ago

sowbug commented 1 year ago

Today, various trait methods return Vecs with messages in them. Would it be more efficient for the methods to include a callback that gives the original caller the option to process it immediately and discard it, or to stick it into its own Vec so it doesn't have to deal with the one that the callee made for it?

Make sure this doesn't mess up Send or Sync or any future async plans.