Gamemode takes 700+ seconds to compile -
X337 - 06.03.2017
My gamemode takes 700+ seconds to compile. Is it normal? and what's the thing that causing a script takes much time to compile?
I compiled the gamemode using Zeex's PAWN compiler with -d3 and -Z flags. The .amx size is 3,565 KB.

Thanks in advance.
Re: Gamemode takes 700+ seconds to compile -
TopShooter2 - 06.03.2017
How many lines do you have and is your gamemode optimized?
Re: Gamemode takes 700+ seconds to compile - iLearner - 06.03.2017
Could be something with your computer memory.
Re: Gamemode takes 700+ seconds to compile -
Wolfe - 06.03.2017
We're gonna need a lot more details then just the speed of the compiler. Have you noticed any other issues with your machine/computer? What are your specs? How many lines is the script? Have you tried messing around with compiler settings?
Re: Gamemode takes 700+ seconds to compile -
X337 - 06.03.2017
Thanks for your reply guys.
Quote:
Originally Posted by TopShooter2
How many lines do you have and is your gamemode optimized?
|
I don't really know about how many lines my gamemode has because it's modular script, but i guess it's about 24931 lines.
Yeah, it's optimized, i've rechecked my code if there's an unused cells / functions.
Quote:
Originally Posted by iLearner
Could be something with your computer memory.
|
Did you meant there's a problem in my memory (RAM)?
Quote:
Originally Posted by Wolfe
We're gonna need a lot more details then just the speed of the compiler. Have you noticed any other issues with your machine/computer? What are your specs? How many lines is the script? Have you tried messing around with compiler settings?
|
I'm using my notebook to compile the script (2 GB RAM and 1,8 Ghz Processor). I don't know if it's really matter.
And no, i'm just using -d3 and -Z flags to compile.
Re: Gamemode takes 700+ seconds to compile -
TopShooter2 - 06.03.2017
Damn, I can compile 50k lines script in un-optimized code with 512 ram in 4minutes

.
Re: Gamemode takes 700+ seconds to compile -
Spmn - 06.03.2017
You got switch'es with a lot of cases?
Re: Gamemode takes 700+ seconds to compile -
Eoussama - 06.03.2017
How long your computer has been up? In my case, let's say, my computer was up for 3 days when I try to compile my script (I use sublime text btw) either the compiler times out or it takes shitload of time to finish, if this is your case, try restarting your computer
Re: Gamemode takes 700+ seconds to compile -
Djole1337 - 06.03.2017
Linux kernel takes less time to compile.
Re: Gamemode takes 700+ seconds to compile -
X337 - 06.03.2017
Quote:
Originally Posted by Spmn
You got switch'es with a lot of cases?
|
No, i mostly use switch and case for dialog responses and it's only have few cases.
Quote:
Originally Posted by Eoussama
How long your computer has been up? In my case, let's say, my computer was up for 3 days when I try to compile my script (I use sublime text btw) either the compiler times out or it takes shitload of time to finish, if this is your case, try restarting your computer
|
I turn on my notebook not more than 3 hours ago, i already restarted my notebook but it still takes much time to compile.
Quote:
Originally Posted by Djole1337
Linux kernel takes less time to compile.
|
Thank you, i will try to compile this gamemode on vps.
Thanks for your help guys, i think it's because my system.
I will try to compile the gamemode on VPS, to check whether it's from my system or the script that causing much time to compile.