Does this makes code work slower? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Does this makes code work slower? (
/showthread.php?tid=453243)
Does this makes code work slower? -
Micius - 24.07.2013
Does this makes code work slower?
pawn Код:
public OnPlayerConnect(playerid)
{
Test(playerid);
return 1;
}
Test(playerid)
{
SAME CODE....
}
Instead of:
pawn Код:
public OnPlayerConnect(playerid)
{
SAME CODE....
return 1;
}
Re: Does this makes code work slower? -
Roko_foko - 24.07.2013
Yes, but just a little( very little what is not noticeable ) bit. I suggest you to do it with Test() as it is easier to read the code and easier to debug.
Re: Does this makes code work slower? -
Micius - 24.07.2013
Is there any faster way to move code to other place?