Skip to content

Reduce compiler inliner CPU time and allocation - #1640

Merged
Frotty merged 1 commit into
masterfrom
codex/upstream-inliner-efficiency
Dec 2, 2026
Merged

Frotty merged 1 commit into
masterfrom
codex/upstream-inliner-efficiency

Conversation

@Frotty

@Frotty Frotty commented Dec 1, 2026

Copy link
Copy Markdown
Member

What changed

The inliner rebuilds ordering keys throughout comparator calls, re-sorts call edges to count incoming uses, and sorts repeated call targets. Cache each signature key for one inliner instance, count incoming uses directly, and deduplicate targets in encounter order before the stable sort. Callee-first traversal, ratings, and optimization flags keep their existing behavior.

Generated wurst_run.args still uses build-only +inline, +localOptimizations, and +opt settings. Ordinary Run Map and hot reload retain their existing defaults.

Validation

  • 268 focused Windows tests passed across optimizer, determinism, Lua inlining, and run-argument behavior.
  • On a 12,000-function synthetic input, warmed median inliner allocation fell from 188 MB to 57 MB for Lua and from 187 MB to 57 MB for Jass. Median inliner CPU time fell from 141 ms to 125 ms for Lua and from 125 ms to 78 ms for Jass. These measurements cover the inliner pass.

@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-01T22:32:47.931541Z 8fae58a PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@Frotty
Frotty merged commit 20333a9 into master Dec 2, 2026
2 checks passed
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.

1 participant