This is inconsequential except that it leads to slightly cleaner code and slightly cleaner assembly. In this case the compiler will turn it into a direct comparison of two 16 bit integers, rather than comparing the characters individually.
Since the branch is very predictable, there is no performance impact.
This is inconsequential except that it leads to slightly cleaner code and slightly cleaner assembly. In this case the compiler will turn it into a direct comparison of two 16 bit integers, rather than comparing the characters individually. Since the branch is very predictable, there is no performance impact.