25 May
2020
25 May
'20
1:26 p.m.
Dimitri John Ledkov wrote:
If boost-regex is better, should Ubuntu switch to it as the default std::regex provider? Such that anything built on or for Ubuntu uses the faster implementation?
Probably not, all things considered. libstdc++ has a relatively good std::regex (by Tim Shen); in Boost.Regex's own benchmarks it's occasionally slower by a factor of 37: https://www.boost.org/doc/libs/1_73_0/libs/regex/doc/html/boost_regex/backgr... but typically holds its own. libc++ seems the worst of the three; in http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p1433r0.pdf it's slower by a factor of 80.