I have a small test program that is testing regex library.
2 major lines are:
int ret = xregexec(preg, buffer, 1, &pmatch, 0);
std::cout << "ret=" << ret << " pmatch.rm_so=" << pmatch.rm_so << ", pmatch..rm_eo=" << pmatch.rm_eo << std::endl;
for some reason xregexec is taking some extra seconds that shouldn't at all!
In my project I have a reference to project xregex that is using regex.c lib from
Extended regular expression matching and search library,
The question: How can I profile and find out where the time is wasting here?