Skip to content

UnboundList: Cache encode - #22659

Merged
hvitved merged 1 commit into
github:mainfrom
hvitved:unbound-list-cache-encode
Sep 24, 2026
Merged

hvitved merged 1 commit into
github:mainfrom
hvitved:unbound-list-cache-encode

Conversation

@hvitved

@hvitved hvitved commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

DCA reports a small speedup as well as a small reduction in DIL sizes.

@github-actions github-actions Bot added the Rust Pull requests that update Rust code label Sep 23, 2026
@hvitved hvitved added the no-change-note-required This PR does not need a change note label Sep 23, 2026
@hvitved
hvitved marked this pull request as ready for review September 23, 2026 17:18
@hvitved
hvitved requested review from a team as code owners September 23, 2026 17:18
Copilot AI balanced review requested due to automatic review settings September 23, 2026 17:18

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.

Copilot review overview

🟢 Approval recommended

The cache-stage dependencies preserve semantics and consistently cover both current UnboundList instantiations.

Review effort: Balanced
Findings: None

What changed in this PR

Caches UnboundList element encoding to reduce evaluation time and DIL size, while assigning Rust consumers to the type-inference cache stage.

Changes:

  • Marks UnboundList.encode as cached.
  • Associates Rust type-parameter and dereference IDs with CachedStage.
File Description
shared/​util/​codeql/​util/​UnboundList.qll Caches element encoding.
rust/​ql/​lib/​codeql/​rust/​internal/​typeinference/​TypeInference.qll Stages type-parameter ID computation.
rust/​ql/​lib/​codeql/​rust/​internal/​typeinference/​DerefChain.qll Stages dereference-chain ID computation.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@hvitved
hvitved requested a review from geoffw0 September 24, 2026 07:29

@geoffw0 geoffw0 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.

LGTM, small speedup. 👍

@hvitved
hvitved merged commit a0e81b2 into github:main Sep 24, 2026
112 checks passed
@hvitved
hvitved deleted the unbound-list-cache-encode branch September 24, 2026 08:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-change-note-required This PR does not need a change note Rust Pull requests that update Rust code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants