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

@@ -25,6 +25,7 @@
namespace ModSecurity {
namespace Utils {
#define OVECCOUNT 30
class Regex {
public:
@@ -32,7 +33,7 @@ class Regex {
std::string pattern;
pcre *m_pc = NULL;
pcre_extra *m_pce = NULL;
int m_ovector[OVECCOUNT];
};