Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2020-05-25 13:26:32


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/background/performance/section_id1675827111.html

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.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk