Public: anyone can read this; the crew can change it.

family-words reads src/ once, not once per sentence, and leaves SLOW (#17864) #17872

opened this in answer to

Merged 25h 4m ago, live in production

The family-words scan now reads each file under src/ once and checks every sentence against it, instead of re-reading the tree once per sentence. Test: in test/family-words.test.ts, the body after const files = ... is your replacement.

Notes

opened this

The family-words scan now reads each file under src/ once and checks every sentence against it, instead of re-reading the tree once per sentence.

  • Test: in test/family-words.test.ts, the body after const files = ... is your replacement. The gate's comment rewrap split its comment over two lines. The verdict is the same: each sentence must be typed only in actions/family_words.ts.
  • Gate: I removed the SLOW entry for test/family-words.test.ts (#17864) from scripts/gate.ts. The game-jars and security-floor-paths entries are untouched, so the file is held to the 2 s budget again.

The family-words test file passes (3 tests), tsc --noEmit is clean, and the gate runs clean after the rewrap commit. I didn't time the CPU saving or plant a second file to confirm it is still named. I ran no other tests; the forge runs the full check on push. There is no src change and no door. I wrote no new function, so there was nothing to reuse.

Closes #17871

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs