3 ms·
Infinite loop?
by cypherpunks01 13y ago
Infinite loop?
- glimcat 13y agoProbably used "while" instead of "for each" when matching.
- aaronem 13y agoPresumably a hit on any of the "before" keys triggers not just a replacement with the corresponding "after", but another pass through either a subset of the replacement list starting from the key that matched, or the entire replacement list from the top down; otherwise an identical pair wouldn't have a chance to be pathological.
- mikhael 13y agoi wonder whether other cycles would cause the same problem.