Huge performance improvement: passing variables as pointers avoiding copies

This commit is contained in:
Felipe Zimmerle
2015-09-18 20:21:12 -03:00
parent 2451bf05d7
commit 076a02951c
45 changed files with 207 additions and 208 deletions

View File

@@ -37,8 +37,7 @@ class Rx : public Operator {
Rx(std::string op, std::string param, bool negation)
: Operator(op, param, negation),
m_param(param) {
Regex r(param);
m_re = &r;
m_re = new Regex(param);
}
bool evaluate(Assay *assay, const std::string &input);