token.cpp: optimized Token::multiCompare() a bit - reduces average Ir from 71 to 63 when scanning test folder (#3525)
This commit is contained in:
parent
1f01845efb
commit
ce029f3ea7
|
@ -555,11 +555,14 @@ int Token::multiCompare(const Token *tok, const char *haystack, nonneg int varid
|
|||
|
||||
do {
|
||||
++haystack;
|
||||
} while (*haystack != ' ' && *haystack != '|' && *haystack);
|
||||
|
||||
if (*haystack == ' ' || *haystack == '\0') {
|
||||
return -1;
|
||||
}
|
||||
if (*haystack == '|') {
|
||||
break;
|
||||
}
|
||||
} while (true);
|
||||
|
||||
++haystack;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue