mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-11-18 18:30:35 +03:00
Huge performance improvement: passing variables as pointers avoiding copies
This commit is contained in:
@@ -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];
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user