Local or global string for mySQL queries
#6

Quote:
Originally Posted by Gamer_Z
Посмотреть сообщение
I didn't research it but it sounds logically that variables created and then destroyed let you have more ram, however you have some performance loss.
PAWN is single threaded so if you're going to do a thousand times new string[256]; in each callback, why not make one global string? saves performance and time.(+amx size will be smaller)
That's a good point there, I never thought of that. I may even use it in my scripts.
Reply


Messages In This Thread
Local or global string for mySQL queries - by MP2 - 17.01.2012, 20:19
Re: Local or global string for mySQL queries - by Scenario - 17.01.2012, 20:23
Re: Local or global string for mySQL queries - by Gerira Gaijin - 17.01.2012, 20:25
Re: Local or global string for mySQL queries - by Kar - 17.01.2012, 20:25
Re: Local or global string for mySQL queries - by Gamer_Z - 17.01.2012, 20:28
Re: Local or global string for mySQL queries - by Gerira Gaijin - 17.01.2012, 20:31
Re: Local or global string for mySQL queries - by Corello2010 - 17.01.2012, 20:32
Re: Local or global string for mySQL queries - by T0pAz - 18.01.2012, 12:52
Re: Local or global string for mySQL queries - by thimo - 18.01.2012, 12:57
Re: Local or global string for mySQL queries - by Gamer_Z - 18.01.2012, 13:06

Forum Jump:


Users browsing this thread: 4 Guest(s)