20.12.2014, 18:05
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.
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.