Replies: 3 comments 1 reply
-
How much memory are we talking here? |
Beta Was this translation helpful? Give feedback.
0 replies
-
@Darksonn Thanks for your reply. Rust consumer uses about 45M memory while go consumer uses about 8M, and cpu usages is more high for rust than go in htop. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I'm going to convert this into a discussion. If it turns out this exposes a bug in Tokio (as opposed to an issue in the non-tokio code), we can open a new issue & reference the discussion 👍. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
Hi,
I'm writing an pulsar consumer, which will consume messages from the pulsar topic. But it seems the process is using more memory and cpu than an go consumer. Why rust(a language which has no GC) consumes more memory than go(a language which has GC), which does the same thing as the rust application?
I also did a flamegraph but didn't know how to investigate how to make it consume less cpu and memory.
flamegraph.svg.zip
Cargo project for consuming pulsar messages: https://github.com/lichuan6/pulsar-consumer
Go project to produce & consume messages: https://github.com/lichuan6/pulsar-simple-producer
Pulsar setup:
Thanks
Version
Platform
Beta Was this translation helpful? Give feedback.
All reactions