30.09.2010, 05:32
Quote:
Obviously reusing one large one would save memory but it would also cause problems if misused.
|
No. Misusing it would mean setting in, passing to a function that overwrites it, then back to the main function where it gets used again.
Quote:
I'd assume using a global string wouldn't be terrible. PAWN is single-threaded, so two things can't happen at the exact same time. Therefore, one variable can't be in use in two places simultaneously.
Correct me if I'm wrong. |
PAWN is single-threaded though plugins with multi-threaded features (i.e. G-Stylez MySQL) do exist. There you need to be careful.