[Gambas-user] Gambas was live on Twitch

Benoît Minisini gambas at ...1...
Fri Sep 11 04:02:03 CEST 2015


Le 11/09/2015 03:52, Kevin Fishburne a écrit :
> On 09/09/2015 07:28 AM, Benoît Minisini wrote:
>> Hi Kevin, Looking quickly at your live twitch, I noticed that
>> apparently, if I'm not wrong, you are not aware of the difference
>> between: If A And B And C Then And: If A And If B And If C Then "And"
>> must be used for binary computation. "And If" should always be used
>> for tests. It is faster, as it only executes a test if the previous is
>> TRUE, while "And" always evaluates all its operands. I think you will
>> agree to save a few CPU cycles, do you? :-) Regards,
>
> That is an awesome tip. I actually had wondered if there was a way to do
> this, or if Gambas would abort subsequent tests automatically if one was
> found to be False. I didn't realize I could just stick multiple Ifs in
> there. Thanks!
>

By the way, do you use the IDE profiler to detect where you use most of 
the CPU?

-- 
Benoît Minisini




More information about the User mailing list