SA-MP Forums Archive
Multithreaded compilation - 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)
+---- Forum: Discussion (https://sampforum.blast.hk/forumdisplay.php?fid=84)
+---- Thread: Multithreaded compilation (/showthread.php?tid=578581)



Multithreaded compilation - Misiur - 20.06.2015

Ok, so normally when writing in languages which parallelise poorly (such as most nonfunctional ones) we are stuck with single process compilation. However when we remove interdependencies between modules, such as mouldar scripting layout (using FS'es for components) we can achieve this. I really loathe waiting over a minute for GM to compile, when I have 6 physical cores in my PC. Has anyone tried writing some batch script for parallel compilation? If so could they share their code and/or experiences? Would anybody be interested in such thing?


Re: Multithreaded compilation - Pottus - 20.06.2015

My guess the best way would be to actually improve the compiler source it's self. It was compiled years ago so maybe there is some issues that could be addressed today that were not addressed then.


Re: Multithreaded compilation - Misiur - 20.06.2015

There was an idea thrown to rewrite it using LLVM, but still, using single gamemode with includes makes multithreading impossible.