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

Perf[MQB]: do not build temporary functors for every routed message #477

Merged
merged 1 commit into from
Oct 28, 2024

Conversation

678098
Copy link
Collaborator

@678098 678098 commented Oct 25, 2024

Should save 1% out of 36.4% of the queue dispatcher thread and reduce the total number of allocations.

Before:
Screenshot 2024-10-25 at 19 08 45

After:
Screenshot 2024-10-25 at 23 27 28

@678098 678098 requested a review from a team as a code owner October 25, 2024 19:25
@678098 678098 force-pushed the 241024_perf_AppContext_visitor branch from 66be800 to c6d38ea Compare October 25, 2024 19:32
Copy link

@bmq-oss-ci bmq-oss-ci bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Build 331 of commit c6d38ea has completed with FAILURE

allocator,
&QueueEngineUtil_AppsDeliveryContext::visitBroadcast,
this,
bdlf::PlaceHolders::_1))
Copy link
Collaborator Author

@678098 678098 Oct 27, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The alternative to this is to make Visitor functor and inherit from it locally.
Like here:
#481

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To implement new DeliveryContext interface...

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's discuss it later then

allocator,
&QueueEngineUtil_AppsDeliveryContext::visitBroadcast,
this,
bdlf::PlaceHolders::_1))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To implement new DeliveryContext interface...

@678098 678098 merged commit 9a9b79f into bloomberg:main Oct 28, 2024
44 checks passed
@678098 678098 deleted the 241024_perf_AppContext_visitor branch October 28, 2024 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants