Avoid long compilation time for set/dict pattern