>launching python to do regexp is faster than std::regexBjarnebros... Not like this...
I would like to ask whether this build of python was PGO'd and whether python was also compiled -O2.
>>110486911just don't use regex.If you think you got a use-case for them, then you are most likely wrong. It can be done simpler.
>>110486911What about libraries outside of std?
>>110486911std::regex is basically deprecated, this is irrelevant, use a library.
>>110486911It's a retard-tier implementation that was handicapped by supporting both the standard and ABI backwards-compatibility since C++11. Templates were new and shiny back then, so the ABI supports arbitrary "character" types-- char, wchar, MyImaginaryChar_t (399bit because fuck you), etc.While it could be redone with C++23 and later improvements, it's a pain in the ass where implementation would be tedious and getting approval of the standards committee would be even worse.As such, it's basically just for prototyping (similar to the default unordered_map imo). Use ctre/re2/etc. for anything you actually plan on releasing
>>110487101it doesn't matter, std::regex is absolutely fuckedyou can drop in boost::regex and change no other code for a 50x speedup