30.09.2010, 01:27
Hello there, I was just curious about this one simple question I can't seem to figure out. I was discussing with Calgon about what would be better (in this case for code optimization). What I did was in my script, I created a large variable only for strings.
That is a global variable, that I put somewhere above/near the #include/#defines.
Now, that is all I use for string variables 1 var, globally. And I can't tell if declaring smaller string variables are better then global ones.
Imagine having to create small variables under every callback/function you use
Please help me figure this out.
pawn Код:
new str[1024]; // This is also used for dialogs just saying (I know max is 128 for normal strings).
Now, that is all I use for string variables 1 var, globally. And I can't tell if declaring smaller string variables are better then global ones.
Imagine having to create small variables under every callback/function you use
pawn Код:
new str[128];