Regex Performance
The cluster focuses on discussions about the performance of regex engines and libraries across programming languages, including comparisons, optimizations like JIT and DFA compilation, and specific implementations such as Rust's regex, RE2, PCRE, and Hyperscan.
Activity Over Time
Top Contributors
Keywords
Sample Comments
I thought Regex was typically less performant than string operations?
Imagine hardening the regex library, its already as slow as molasses.
How does this compare to other regex parsing libraries, performance wise?
Until they implement a JIT and compile the regex.
Is the Rust regex engine slow because it's written in Rust?
Is regex execution considered efficient? I have always been impressed with its speed.
Any experience with performance? This seems to be heavy with regexes
What sort of Regex are they using? The garden variety can be compiled to DFAs (O(n)) which a modern computer should have no issues handling. Further optimizations
I am responding to your claim. I'm saying that not all regex implementations are created equal. Some can be just as fast as what you might write by hand.
Related:Hyperscan: High-performance multiple regex matching library from Intel - https://news.ycombinator.com/item?id=21873557 - Dec 2019 (53 comments)Hyperscan: A Fast Multi-Pattern Regex Matcher for Modern CPUs - https://news.ycombinator.com/item?id=19270199 - Feb 201