3 ms·
Yeah the implementation they've chosen seems totally perfect to me. Sane global default, easily overridable globally or locally. No easy way to override it loc
by JohnBooty 5y ago
Yeah the implementation they've chosen seems totally perfect to me. Sane global default, easily overridable globally or locally.
No easy way to override it locally when using =~, but I can't imagine too many cases where you would want to use a local timeout anyway.... can just switch away from =~ syntax for those.
This is mostly a denial-of-service mitigation tool, something you'd just want to apply globally to avoid disasters spawned by malformed or malicious input. In practice, it's hard to imagine a use case where you'd really want to be twiddling the knobs on a regexp-by-regexp basis.