faster or no difference
#1

I got a Question.

some people told me that it would be faster if you script like this:
PHP код:
if(IsPlayerConnected(playerid)){SendClientMessage(playerid,COLOR_RED"Textmessage");return 1;} 
than this:

PHP код:
if(IsPlayerConnected(playerid))
{
    
SendClientMessage(playerid,COLOR_RED"Textmessage");
    return 
1;

So far i always thought, that the compiler would always optimize stuff like that, so it shouldnt make any difference.
Reply


Messages In This Thread
faster or no difference - by Blunt P - 22.04.2012, 19:02
Re: faster or no difference - by Kenoja - 22.04.2012, 19:06
Re: faster or no difference - by Cameltoe - 22.04.2012, 19:08
Re: faster or no difference - by BleverCastard - 22.04.2012, 20:24
AW: faster or no difference - by Blunt P - 22.04.2012, 20:29

Forum Jump:


Users browsing this thread: 1 Guest(s)