Skip to content

Perf[mqbblp]: early return if no throttle to cancel#1511

Open
678098 wants to merge 1 commit into
bloomberg:mainfrom
678098:260610_throttle_opt
Open

Perf[mqbblp]: early return if no throttle to cancel#1511
678098 wants to merge 1 commit into
bloomberg:mainfrom
678098:260610_throttle_opt

Conversation

@678098

@678098 678098 commented Jun 10, 2026

Copy link
Copy Markdown
Collaborator

Avoid looking for handle via findQueueHandleContext if there is no throttle.
In other words, tryCancelThrottle should be no-op if there is no throttle scheduled.

Avoid spending time on this lookup if there is no throttle:
Screenshot 2026-06-10 at 19 17 20

Signed-off-by: Evgeny Malygin <emalygin@bloomberg.net>
@678098 678098 requested a review from a team as a code owner June 10, 2026 23:22
@@ -1210,14 +1215,12 @@ void QueueEngineUtil_AppState::tryCancelThrottle(
}

queueHandleContext->d_timeLastMessageSent = 0;

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

The side-effect is that we don't set this d_timeLastMessageSent to 0 if there is no throttle, but it looks fine.

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