Skip to content

Rust: Fix performance issue with additionalExternalFile#21671

Open
geoffw0 wants to merge 1 commit intogithub:mainfrom
geoffw0:neutralperf
Open

Rust: Fix performance issue with additionalExternalFile#21671
geoffw0 wants to merge 1 commit intogithub:mainfrom
geoffw0:neutralperf

Conversation

@geoffw0
Copy link
Copy Markdown
Contributor

@geoffw0 geoffw0 commented Apr 8, 2026

Fix performance issue with File.fromSources additionalExternalFile.

@geoffw0 geoffw0 requested a review from a team as a code owner April 8, 2026 14:34
@geoffw0 geoffw0 added the no-change-note-required This PR does not need a change note label Apr 8, 2026
Copilot AI review requested due to automatic review settings April 8, 2026 14:34
@geoffw0 geoffw0 added the Rust Pull requests that update Rust code label Apr 8, 2026
Copy link
Copy Markdown
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

Improves Rust CodeQL analysis performance by adjusting how File.fromSource() checks additionalExternalFile, addressing a regression introduced by the neutral models work (PR #21271).

Changes:

  • Adds a pragma[nomagic] wrapper predicate for getRelativePath().
  • Updates fromSource() to call the wrapper when checking additionalExternalFile(...).
Show a summary per file
File Description
rust/ql/lib/codeql/files/FileSystem.qll Adjusts File.fromSource() path lookup to avoid a performance regression during analysis.

Copilot's findings

  • Files reviewed: 1/1 changed files
  • Comments generated: 0

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.

2 participants