Skip to content

perf: cache loader dynamic imports - #14

Merged
chenjiahan merged 1 commit into
mainfrom
chenjiahan/cache-loader-imports
Sep 22, 2026
Merged

chenjiahan merged 1 commit into
mainfrom
chenjiahan/cache-loader-imports

Conversation

@chenjiahan

@chenjiahan chenjiahan commented Sep 22, 2026 •

Copy link
Copy Markdown
Member

Summary

Repeated config loads currently call import() for fresh-import or jiti each time, repeating module resolution and asynchronous loader-hook overhead even when Node has cached the module. Add an internal cachedImport() helper that lazily shares the import promise across calls and clears it on rejection to allow retries. Config evaluation and fresh behavior remain unchanged.

Related Links

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 22, 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-09-22T05:14:47.898361Z a582456 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.

@chenjiahan
chenjiahan merged commit 19033cd into main Sep 22, 2026
3 checks passed
@chenjiahan
chenjiahan deleted the chenjiahan/cache-loader-imports branch September 22, 2026 05:19
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