The five steps
- Cut at the first stop 8 min
- Stream it 11 min
- Say which stop matched 8 min
- Index the stop list 11 min
- Two hundred thousand characters 10 min
Cut generated text at the first stop sequence, then do it on a stream you cannot store: catch stops split across chunks, say which stop matched, and stay fast with twenty thousand stops.