5 ms·
Can you expand on the problems with regex?
by the_svd_doctor 3y ago
Can you expand on the problems with regex?
- mike_hock 3y agoThe implementations are bad and implementers are refusing to fix their own bad implementations so as to not break their own ABI, but that has nothing to do with C++ the standard.
- dkersten 3y agoFrom what I’ve heard, std::regex is notoriously inefficient (lots of memory allocations, no allocator support). But I’ve never used it myself.
- TylerGlaiel 3y agooh yeah C++ regex is stupidly inefficient, like "python is faster" inefficient. I tried to use it for text replacements and pretty much immediately abandoned it
- gpderetta 3y agoApparently typical implementations of std::regex are inefficient like "'popen("perl..")' is faster" is inefficient! I thing boost::regex is significantly faster although not particularly fast