Dynamic allocation - 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: Dynamic allocation (
/showthread.php?tid=296547)
Dynamic allocation -
DreamOnIt - 11.11.2011
Well, i was just wondering...
Is allocating memory with ******'s malloc include, do all the work with the block of memory, copy the values into a staticly allocated var, free the block and return the var, worth doing it?
Re: Dynamic allocation -
DreamOnIt - 12.11.2011
38 views and no answer? D:
Re: Dynamic allocation -
Calgon - 13.11.2011
It depends what you're making. In reality, Pawn uses very little memory - and even less when you
pack strings (explained in depth in the tutorial, best I could find in a minute), so there's very little need IMO.