Improved Encoder API
Thanks to @Barinzaya for submitting #44 which improves the encoder API in two ways:
- It defines a new
Output
trait and a newencode_into
function that allows to encode OSC data into anything that implements theOutput
trait. TheOutput
trait got implemented ofVec<u8>
, so that the existingencode
function can leverageencode_into
under the hood. - Encoder performance improved by an order of magnitude π π ! There was no regression, only speedups between 5 and 21 times. This was mainly achieved by preventing a lot of allocations (as done in the previous implementations). For more details see #44.