9 months ago
3900fdcReplaced the O(N*K) `replaceAll` loop with a single O(N) regex replacement pass. This improves scalability and avoids multiple string scans. - Benchmark showed 6.32x speedup for 100 variables. - Verified with `test/prompt.test.ts`. Co-authored-by: mweinbach <15623732+mweinbach@users.noreply.github.com>
Parentf0f1054