avoid unnecessary processing when a stream has 32 or fewer nested parenthesis. #1201

time-shift
Houtan Bastani 2016-12-30 18:32:20 +01:00
parent 3b20d41a92
commit 952f545cd7
1 changed files with 2 additions and 0 deletions

View File

@ -1296,6 +1296,8 @@ void
ModelTree::fixNestedParenthesis(ostringstream &output, map<string, string> &tmp_paren_vars) const
{
string str = output.str();
if (!testNestedParenthesis(str))
return;
int open = 0;
int first_open_paren = 0;
int matching_paren = 0;