Skip to content

Go: Fix bad join order - #23280

Merged
owen-mc merged 1 commit into
github:mainfrom
owen-mc:go/fix-join-order
Nov 27, 2026
Merged

owen-mc merged 1 commit into
github:mainfrom
owen-mc:go/fix-join-order

Conversation

@owen-mc

@owen-mc owen-mc commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

Fix a latent bad join order that was exposed by the new TLS field-path models in #22797 , but was caught by nightly performance testing.

@owen-mc
owen-mc requested a review from a team November 27, 2026 11:01
@owen-mc
owen-mc requested a review from a team as a code owner November 27, 2026 11:01
@owen-mc owen-mc added the no-change-note-required This PR does not need a change note label Nov 27, 2026
Copilot AI adaptive review requested due to automatic review settings November 27, 2026 11:01

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues are reported for the variadic summary-stack filtering change.

No open issues 🎉

What changed in this PR

This PR addresses a latent join-order performance issue in Go’s HTTP data-flow modeling, exposed by the TLS field-path models added in #22797 and detected by nightly performance testing.

Changes:

  • Extracts array-element summary-stack filtering into a private pragma[noinline] helper.
  • Uses the helper for implicit variadic arguments to filter stacks before joining them with call-site arguments.
File Description
go/​ql/​lib/​semmle/​go/​frameworks/​stdlib/​NetHttp.qll Isolates variadic summary-stack filtering to improve join order.

Review effort: Balanced (adaptive)

@github-actions github-actions Bot added the Go label Nov 27, 2026

@michaelnebel michaelnebel left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks plausible to me!

@owen-mc
owen-mc merged commit 22b2241 into github:main Nov 27, 2026
19 checks passed
@owen-mc
owen-mc deleted the go/fix-join-order branch November 27, 2026 13:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Go 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.

3 participants