lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

>>>>> "Ranier" == Ranier Vilela <> writes:

 >> Using unsigned rather than signed integers is sometimes detrimental
 >> to performance and essentially never beneficial; the reason is that
 >> the compiler is allowed to do some optimizations with signed values
 >> that are not allowed on unsigned ones.

 Ranier> This contradicts everything I've studied about optimizations.

Then you're studying the wrong things (but we already knew that, based
on your previous mistakes in this area).

 Ranier> For loops, the quickest option, are variables with the natural
 Ranier> size of the machine.


 Ranier> Which leads the compiler to make implicit conversions

You didn't look at the code that a decent compiler generated, did you.