dillon1000/react
Commit
Browse files Pass `init` to E0007 diagnostic
I'm not sure why exactly but previously this diagnostic message was unusually slow to typecheck. Lifting the getter for init outside of the diagnostic to the callsite seems to fix the hotspot. Probably some interaction with string interpolation, or something else. Test case: ran `yarn ts:analyze-trace`, hotspot for Diagnostic.ts no longer present
Changed paths2 files
First-parent comparisoncompiler/forget/src/Diagnostic.ts ModifiedM compiler/forget/src/IR/Hook.ts ModifiedPatch
Files changed
Rendering syntax-highlighted changes…