Posts: 534
Threads: 265
Joined: Jul 2014
Hi,
I'am using now 5000000 pragma dynamic. Is it slow a server?
Posts: 10,066
Threads: 38
Joined: Sep 2007
Reputation:
0
Not directly, but the mere fact that you need to use this directive is usually an indication that the script you are using is an unoptimized mess.
Posts: 534
Threads: 265
Joined: Jul 2014
BUt sometimes, you do that that you don't see and there use a lot of memory for ex somebody say if you return string it'is use a lot of memory
Код:
stock asdsad (variable[])
{
return variable;
}
And something similar.
Posts: 481
Threads: 37
Joined: Feb 2014
Reputation:
0
This much! try to optimize your scripting. Looks like you scripted something big thing poorly
Posts: 1,733
Threads: 20
Joined: Nov 2010
Reputation:
0
Are you returning strings up to 5 megabytes in size?
You gotta optimize your code in that case, not increase the #pragma dynamic.
Most scripts don't use it, as the default stack is big enough in most cases (like 99% of all possible cases).
Even big scripts which have over 50k lines don't need to adjust this value.
I also got some messages from heap/stack size in the beginning, but that was because I created big arrays inside functions.
Moving those big arrays to the main script (outside any function) got rid of those messages.
Posts: 534
Threads: 265
Joined: Jul 2014
My script is 300 k lines
and without includes.
Posts: 184
Threads: 28
Joined: Jun 2014
Reputation:
0
SHOWING OFF GONE WRON AHAHAHA