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

Improved efficiency in KeyShared dispatcher #7104

Merged
merged 4 commits into from
Jun 4, 2020

Conversation

merlimat
Copy link
Contributor

@merlimat merlimat commented May 29, 2020

Note: this is based on top of #6791. Once that is merged, I'll rebase here. For the sake of this review, check commit a3a9c91

Motivation

Instead of grouping the messages by same key, group them directly by same consumer in order to achieve max possible grouping when sending them. Also reuse the map for messages grouping as a thread local.

@codelipenghui codelipenghui merged commit 605868d into apache:master Jun 4, 2020
huangdx0726 pushed a commit to huangdx0726/pulsar that referenced this pull request Aug 24, 2020
Instead of grouping the messages by same key, group them directly by same consumer in order to achieve max possible grouping when sending them. Also reuse the map for messages grouping as a thread local.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/enhancement The enhancements for the existing features or docs. e.g. reduce memory usage of the delayed messages
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants