Improves macro expansion speed and variable set attribution

This commit is contained in:
Felipe Zimmerle
2017-03-08 17:49:12 -03:00
parent f17da09fc0
commit 5e59d19121
3 changed files with 83 additions and 74 deletions

View File

@@ -30,7 +30,9 @@ namespace modsecurity {
AnchoredSetVariable::AnchoredSetVariable(Transaction *t, std::string name)
: m_transaction(t),
m_name(name) { }
m_name(name) {
reserve(10);
}
AnchoredSetVariable::~AnchoredSetVariable() {