Las Venturas Playground
Efficient Compiling - Printable Version

+- Las Venturas Playground (https://forum.sa-mp.nl)
+-- Forum: Main Talk (https://forum.sa-mp.nl/forum-3.html)
+--- Forum: Development (https://forum.sa-mp.nl/forum-16.html)
+--- Thread: Efficient Compiling (/thread-27742.html)



Efficient Compiling - Jay - 07-22-2011

Just stumbled across this:

http://forum.sa-mp.com/showthread.php?t=249897

And it does actually make quite a difference! I'd recommend doing it.


Re: Efficient Compiling - Kase - 07-22-2011

I'll try it when I come back home.  :)


Re: Efficient Compiling - thiaZ - 07-24-2011

Quote:OK, forget everything previously said and listen to Wyu instead - that is a feature I never knew about!


Quote:For those who use pawno, there's a less tricky way to do the same - just create a file called "pawn.cfg" in pawno directory with the following content:

Code:
-O2 -d0 -r

Edit:
It seems that SA-MP does not support optimization lol

Edit2:
-O1 works fine

Quote:"-d0" removes some extra code from the AMX which isn't needed (hence "slightly" better build).  The XML file isn't needed at all but is useful.