Skip to content

Conversation

@aschackmull
Copy link
Contributor

Performance of ConfusingOverloading.ql was broken by #20116. This PR fixes things. There were two issues: the dreaded join-on-index and a case of bad magic.

@aschackmull aschackmull added the no-change-note-required This PR does not need a change note label Sep 8, 2025
@aschackmull aschackmull requested a review from a team as a code owner September 8, 2025 06:32
Copilot AI review requested due to automatic review settings September 8, 2025 06:32
@github-actions github-actions bot added the Java label Sep 8, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes performance issues in the ConfusingOverloading.ql query that were introduced in a previous change. The fix addresses two specific performance problems: a join-on-index issue and incorrect use of magic optimization.

  • Added pragma[only_bind_into] annotations to prevent join-on-index performance problems
  • Added pragma[nomagic] annotation to the potentiallyConfusingTypes predicate to fix bad magic optimization

@aschackmull aschackmull merged commit 66379de into github:main Sep 8, 2025
18 checks passed
@aschackmull aschackmull deleted the java/fix-broken-perf branch September 8, 2025 06:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Java no-change-note-required This PR does not need a change note

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants