-
Notifications
You must be signed in to change notification settings - Fork 95
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
fix: Prevent excessive string parsing when publishing and receiving messages to improve performance #2317
base: main
Are you sure you want to change the base?
Conversation
…essages to improve performance
Thanks for taking this up. I believe |
@@ -105,6 +106,7 @@ class MessageDispatcher { | |||
private final Distribution ackLatencyDistribution; | |||
|
|||
private final String subscriptionName; | |||
private final SubscriptionName subscriptionNameObject; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How does this new object interact with the previous subscriptionName
string? Is the latter still necessary?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The old String subscriptionName
is actually no longer used, so I've removed it. subscriptionNameObject
is created in the constructor using the string that is passed in to the builder, but that string is not needed after.
@hongalex Gentle bump on this. |
Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:
Fixes #2295 ☕️
Based off of PR #2304, which some added changes to the subscribe path.