1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-29 08:21:15 +03:00

MCOL-1786 Reduce the performance degradation caused by iequals.

This commit is contained in:
Roman Nozdrin
2018-11-20 20:47:11 +03:00
parent ca55a80a5f
commit 6563f48e32
2 changed files with 59 additions and 64 deletions

View File

@ -383,5 +383,14 @@ public:
}
};
inline bool isTrueWord(const char *field, int fieldLength)
{
//return false;
return fieldLength == 4 && ( field[0] == 'T' || field[0] == 't' )
&& ( field[1] == 'R' || field[1] == 'r' )
&& ( field[2] == 'U' || field[2] == 'u' )
&& ( field[3] == 'E' || field[3] == 'e' );
}
}
#endif