Controversial opinion time: The advantages of Thompson NFA regexes are just theoretical and not worth it. PCRE is faster in the real world.
@ssylvan @graphenepunk In my experience they're uncommon, and why sacrifice performance of the common case to handle uncommon cases?
-
-
@pcwalton@GraphenePunk in most cases buffer overruns don't happen, so why have bounds check? I'd trade a tiny perf. loss for a robust alg. -
@ssylvan@graphenepunk ATM it's *not* a tiny perf loss. re2 is extremely slow compared to PCRE. - 4 more replies
New conversation -
-
-
@pcwalton@ssylvan@GraphenePunk You can't always trust the sources of your regexps. -
@won3d@ssylvan@graphenepunk Why not? Usually regexes are hardcoded, e.g. URL routing, or metacharacters are not allowed. - 2 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.