You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
Could you give me some performance advices?
My CPU profile shows that, about 1/4 of CPU the CPU time is spent when I call
Message::encode_to_vec
to serialize a protobuf object.From the flame graph,
Message::encoded_len
andcore::ptr::drop_inplace
take long time.What I want is to make HTTP requests via reqwest. I serialize the protobuf object to be the HTTP body.
The prost version is 0.9.0.
Am I doing it right? Are there more efficient ways of do this?
Beta Was this translation helpful? Give feedback.
All reactions