You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
perf: replace multiple tsImport() calls with a shared tsx register
tsImport() from tsx/esm/api creates a new module.register() and
MessageChannel per invocation. The CLI calls it up to 3 times. By
creating a single register({namespace}) instance and reusing its
.import() method, we eliminate redundant hook registrations.
Micro-benchmark shows ~90ms savings per additional tsImport call
(96ms for 2x tsImport vs 3ms for shared register + 2x import).
* Add src/cli/ts-import.ts with lazy shared register singleton
* Replace tsImport() in config.ts (1 call) and drizzle-kit.ts (2 calls)
0 commit comments