@LaurentGoderre Even then case is generally slower than if/else. Many optimization sites recommend against using case because browser implementation is not as optimized as for if/else.