v.22.11Performance Improvement

Speed up sequenced AND and OR operators

Speed up AND and OR operators when they are sequenced. #42214 (Zhiguo Zhou).