mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2026-01-01 22:25:45 +03:00
Huge performance improvement: passing variables as pointers avoiding copies
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
#include <string>
|
||||
#include <list>
|
||||
#include <utility>
|
||||
#include "modsecurity/assay.h"
|
||||
|
||||
#ifndef SRC_VARIABLES_VARIABLE_H_
|
||||
#define SRC_VARIABLES_VARIABLE_H_
|
||||
@@ -32,7 +33,7 @@ class Variable {
|
||||
: name(_name) { }
|
||||
|
||||
static std::string to_s(std::vector<Variable *> *variables);
|
||||
virtual std::list<std::pair<std::string, std::string>>
|
||||
virtual std::list<ModSecurityStringVar *> *
|
||||
evaluate(Assay *assay);
|
||||
std::string name;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user