STRCMP - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Server (
https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (
https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: STRCMP (
/showthread.php?tid=429765)
STRCMP -
gankster5 - 11.04.2013
Hello, could someone explain me how would strcmp perform on 100 or 200 player base and how would zcmd do that..
i would love to see some numbers...
Is it really necessary to transfer strcmp to zcmd?
Re: STRCMP -
M3mPHi$_S3 - 11.04.2013
Well i think ZCMD is fast command processor then strcmp ...
Re: STRCMP -
JaKe Elite - 11.04.2013
Yes it is necessary.
ZCMD is faster than strcmp.
But YCMD i think is more faster.
Re: STRCMP -
Vince - 11.04.2013
Basically, if you have 200 strcmp commands and the command you want to perform is a the bottom of the list, then the script will need to go through all 199 commands above it to see that it's not the command that was requested. ZCMD and YCMD call the function directly.
Re: STRCMP -
gankster5 - 11.04.2013
Quote:
Originally Posted by Vince
Basically, if you have 200 strcmp commands and the command you want to perform is a the bottom of the list, then the script will need to go through all 199 commands above it to see that it's not the command that was requested. ZCMD and YCMD call the function directly.
|
Just what i needed to hear. Thanks.