Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TubeMQ] Optimize message write cache logic #2538

Closed
2 tasks done
gosonzhang opened this issue Feb 17, 2022 · 0 comments · Fixed by #2542
Closed
2 tasks done

[TubeMQ] Optimize message write cache logic #2538

gosonzhang opened this issue Feb 17, 2022 · 0 comments · Fixed by #2542

Comments

@gosonzhang
Copy link
Contributor

Description

Reviewing the code in the MsgMemStore file, found that the messages written to the cache were imperfect, fine-tuned to improve write performance:

  1. Remove the ConcurrentHashMap structure used by non-concurrent operation points and replace HashMap;
  2. Migrate operations that can be performed outside of the writeLock lock

InLong Component

InLong TubeMQ

Are you willing to submit PR?

  • Yes, I am willing to submit a PR!

Code of Conduct

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant