Note: This is a question I’m asking more out of historical interest, as I realise that modern languages have built-in regular expressions and case insensitive string compare methods.
When comparing two strings of an unknown case, I can remember reading that Microsoft based conversion methods where optimized for uppercase rather than lowercase. So:
If (stringA.ToUpper() == stringB.ToUpper()) { ... }
would be quicker than:
If (stringA.ToLower() == stringB.ToLower()) { ... }
If this is true, would it be better to store string data in upper rather than lower case when you need to search it?