model-writtenrun 6217 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- While investigating slow regular-expression matching, Tom Lane found that citerdissect and creviterdissect wasted work adjusting later submatches after an earlier submatch failed validation #1.
- Tom proposed immediately backtracking the failing submatch, adding k = i in both functions and updating their explanatory comments #1.
- Tom reported that check-world passed and results remained unchanged on Jacobson's corpus and random expressions; two contrived examples improved from roughly 9.7 seconds and 271 seconds to 9.4 milliseconds and 25 milliseconds #1.
- The thread's only message ended with Tom proposing to push the performance fix to all branches unless objections arose; no independent reviews appear in the supplied thread #1.
- The patch from #1 landed unchanged the following day as facce1da91, with backports recorded for all supported branches.