Skip to content

Avoid stream allocations in Lua hot reload constant checks - #1610

Merged
Frotty merged 1 commit into
masterfrom
codex/hotreload-scan-constant-dependencies
Nov 6, 2026
Merged

Frotty merged 1 commit into
masterfrom
codex/hotreload-scan-constant-dependencies

Conversation

@Frotty

@Frotty Frotty commented Nov 6, 2026

Copy link
Copy Markdown
Member

Summary

Use direct membership checks and an early-exit dependency walk when deciding whether constant initializers can refresh. Keep existing-variable targets, dependency order, memoization and initializer warning rules intact.

Validation

  • JFR attributed recurring allocations to the stream predicates in constant reliability checks.
  • On the unchanged Castle Fight manifest pair, warmed thread allocation fell from 87.3 MB to 81.2 MB. Payload Lua was byte-identical and neither run emitted warnings.
  • All 266 focused hot-reload and fuzz tests passed on Windows. Validation was entirely offline.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-06T18:52:42.195453Z 334d0f8 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 e5d23a7 into master Nov 6, 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