Precompile regular expressions on construction from constant string so it won't need to compile on first call.
git-svn-id: http://yate.null.ro/svn/yate/trunk@3046 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
parent
f449fd6d51
commit
2d27ec675c
|
@ -1261,6 +1261,7 @@ Regexp::Regexp(const char* value, bool extended, bool insensitive)
|
|||
XDebug(DebugAll,"Regexp::Regexp(\"%s\",%d,%d) [%p]",
|
||||
value,extended,insensitive,this);
|
||||
setFlags(extended,insensitive);
|
||||
compile();
|
||||
}
|
||||
|
||||
Regexp::Regexp(const Regexp& value)
|
||||
|
|
Loading…
Reference in New Issue