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.
Today, various trait methods return
Vec
s 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 ownVec
so it doesn't have to deal with the one that the callee made for it?Make sure this doesn't mess up
Send
orSync
or any future async plans.