Original Post
I'll get straight to the point: does one gain a significant overall performance/memory use increase if they use data types according to the size of a given value, i.e. not always using int for numbers, but using short, byte and so on for lower numbers? Hope that makes sense. Basically, is it worth bothering over that (for example, if I know a given variable cannot be > 10, using int (max value of which is... large) is overkill, or not?) from the very beginning (as I am a beginner) or not? Does it result in more optimized code? Or is the difference negligible?