Mail Archives: djgpp/1998/08/13/06:49:53
On Thu, 13 Aug 1998, Kester Maddock wrote:
> So which is faster: shorts, from the cache, but with the 16 bit override, or
> ints (longs) with no 16 bit overide but possibly overflowing the cache?
> The array has between 322 to about 1080 elements.
This is only important if that array is accessed inside the innermost
loop of the program. Such programs are relatively rare.
So I still maintain that it is better to use 32-bit ints in most cases.
Of course, if the performance sucks, you need to profile different
optimizations.
- Raw text -