I'm using g++ (GCC) 7.2.1 20171128 compiler on a GNU/Linux system, and I've noticed that compiling a simple file with <regex> header included takes noticably longer than average.
The difference is almost ten-fold! I've tested it with simpler regex expressions in the constructor of the regex object, but it still takes about the same time.
Can anyone explain to me why does compiling <regex> take so long? Are regular expressions really that complicated?