4 ms·
Regexps are slow-ish. Several MB/second/core for applying the pattern in https://github.com/onemorecloud/dendrite/blob/master/cookbook/solr.yaml https://github
by fizx 14y ago
Regexps are slow-ish. Several MB/second/core for applying the pattern in https://github.com/onemorecloud/dendrite/blob/master/cookbook/solr.yaml https://github.com/onemorecloud/dendrite/blob/master/cookboo..., vs pcre at dozens of MB/second/core. We'll probably put pcre into Dendrite sooner or later.
Dendrite is actually a port of an unreleased library I wrote in C with pcre. For us, the slowdown (which at our log velocity of hundreds of lines per second per box, still looks like 0% cpu in top), was well worth the productivity we got from moving to Go.
- conorh 14y agoThanks, that's useful information.
- voidlogic 14y agoThis is a near drop in replacement for "regexp" that uses PCRE: https://github.com/glenn-brown/golang-pkg-pcre https://github.com/glenn-brown/golang-pkg-pcre
- fizx 14y agoI'm pretty interested, but most concerned about keeping cross-compilation intact for ease-of-install as the community grows. Sooner or later, we'll have the resources to do cross-compilation and pcre. If you want to jump on the google group or github and convince me otherwise, I'm happy to listen.