No you don't actually want a regex library that randomly fails when someone runs one of Chris Domas's pathological stall instructions on a different core.
No you don't actually want a regex library that randomly fails when someone runs one of Chris Domas's pathological stall instructions on a different core.
Why do you say "randomly fails"? Do you consider a configurable timeout with an exception to be a random failure?
Yes. It will fail whenever something else in the system steals your CPU time. Calling code definitely isn't checking for errors either.
What do you want it to do under those conditions then? Stall pathologically?
Yes? If someone locks up the CPU for 60 seconds while your regex library is running, it should take 60 seconds longer to give the same result.
Why would you use wall clock time for this?