Ross

Its inefficient to use a byte in a 32 bit processor as it
may have to shift it about to evaluate it. Its really academic in these
days of megabyte memory to be concerned with 1 vs 4 bytes

Neven MacEwan (B.E. E&E)
Ph. 09 621 0001 Mob. 0274 749062



Ross Levis wrote:

I've tended to use ShortInt and SmallInt rather than Integer to not waste memory when values are never going to exceed their maximum, but I read somewhere that Integer should be used when possible for speed purposes.
I've found it slightly useful when reading the source to know that a particular variable doesn't ever exceed 127 or 32767.
What sort of speed differences are we talking about? Is it worth doing a global find/replace?
Cheers,
Ross Levis.


------------------------------------------------------------------------

_______________________________________________
Delphi mailing list
[EMAIL PROTECTED]
http://ns3.123.co.nz/mailman/listinfo/delphi


_______________________________________________
Delphi mailing list
[EMAIL PROTECTED]
http://ns3.123.co.nz/mailman/listinfo/delphi

Reply via email to