I'm developing a game server and using rmp_serde to send message to game client every frame. I found rmp_serde::to_vec() takes a very high usage.
Is there any idea to optimize its performance?
I tried rmp_serde::encode::write with buff vec to avoid reallocate memory but almost no change.