-
let mut buf: Vec<u8> = Vec::with_capacity(200);
frame.encode(&mut buf).unwrap(); Frame is generated from .proto file. |
Beta Was this translation helpful? Give feedback.
Answered by
fd
Sep 6, 2021
Replies: 2 comments 4 replies
-
Did you bring the |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
lz1998
-
Hi @fd, Could you give me some performance advices? My CPU profile shows that, it consumes a lot CPU when I call From the flame graph, What I want is to make HTTP requests via Am I doing it right? Are there more efficient ways of do this? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Did you bring the
prost::Message
trait in scope? Try adding ause prost::Message;
.