sqlite_protobuf
sqlite_protobuf copied to clipboard
Compile regular expressions only once
Thanks to Scott Lamb for the tip, posted on Hacker News: https://news.ycombinator.com/item?id=19284460
static const std::regex* kPathElementRegexp = new std::regex("...");
This will avoid having to recompile the regular expression on each call.