Download MetaTrader 5
To add comments, please log in or register
Register as a seller and start making profit!
Toast 2014.03.20 20:47 

A difficult question to give a quantifiable answer, but here I go:

I understand the difference between char / short / int / long (8bit, 16bit, 32bit, 64bit) but what sort of real-world difference does this actually make?

If I'm using a counter that is never realistically going to be more than 10-20.

Leaving aside the argument "why not do it properly?", does it really make any difference if I use char/uchar rather than short, int or long?

Or is the gain so negligible it is unnoticeable?

I appreciate the effect will be cumulative, but I'm interested to know if the distinction is really necessary.

ydrol 2014.03.20 21:15  
for large arrays there are obvious space savings, for performance see here
Toast 2014.03.20 22:04  
Thanks! I'd missed that thread and it's now answered a lot of questions
To add comments, please log in or register