nodejs13 min read
The regex that stops your server, measured char by char
A 30-character string made one regex take 6.8 seconds while the rewritten version took 0.0015 ms. Here is the measured curve, the rule that tells the two patterns apart, and the fixes that actually work.
Read →