I read this in the D5 help:
The generic integer types are Integer and Cardinal; use these whenever possible, since they result in the best performance for the underlying CPU and operating system.
 
If what you say is true then this appears to be wrong.
 
I presume packed records are a different story?
 
Cheers,
Ross.
 
----- Original Message -----
From: "Dennis Chuah" <[EMAIL PROTECTED]>
To: "NZ Borland Developers Group - Delphi List" <[EMAIL PROTECTED]>
Sent: Wednesday, September 15, 2004 11:42 AM
Subject: Re: [DUG] ShortInt, SmallInt

>
> In Pentium CPU's all 8-, 16- or 32-bit operations are performed in one CPU
> cycle, so there is no performance penalty.  What you might be thinking of
> are MOV operations involving non-aligned 16- and 32-bit data.  In this case,
> the performance penalty is one CPU read or write cycle - which can vary in
> time depending on whether the data is cached or not.
_______________________________________________
Delphi mailing list
[EMAIL PROTECTED]
http://ns3.123.co.nz/mailman/listinfo/delphi

Reply via email to