[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Performance problem with table.move
- From: Andrew Gierth <andrew@...>
- Date: Sun, 06 Dec 2020 13:15:01 +0000
>>>>> "Ranier" == Ranier Vilela <email@example.com> 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.