mozilla / cubeb-rs

ISC License
61 stars 19 forks source link

Do not allocate buffer when logging messages #51

Closed ChunMinChang closed 4 years ago

ChunMinChang commented 4 years ago

Address the performance issue mentioned here: https://github.com/djg/cubeb-rs/pull/50#pullrequestreview-389875184. When logging message, we should avoid allocating a string, which may consume considerable time. That is not ideal for the real-time threads.

r? @kinetiknz @padenot


This change is Reviewable