3 ms·
Is there something wrong with the specification that causes poor performance?
by fooker 2y ago
Is there something wrong with the specification that causes poor performance?
- steveklabnik 2y agoIt’s ultimately a “won’t break ABI” issue: https://stackoverflow.com/a/70587711 https://stackoverflow.com/a/70587711
- johannes1234321 2y agoThe underlying issue is that for the matches the interface relies a lot on heap allocations for the individual matches, leading to a lot of allocations of small regions to copy from the original input. Many other libraries provide a lot more control there. In benchmarks std::regexp often is a lot slower compared to other implementations, independent from the standard library implementation of choice. The big upside compared to all others is that it's always available. But if there is a choice alternatives are often better.