easyDialog.inc exceed heap size
#5

Quote:
Originally Posted by Uberanwar
View Post
How do you estimate the size? Based on what exactly are the estimations, to set pragma dynamic value?
If you mean the amount of heap that your script will use in the worst case scenario, the compiler says it here:

Quote:

estimated max. usage=4100 cells (16400 bytes)

Again, this is calculated based on how much function calling depth your script can manage, and how much data would get pushed to the heap with each.

If you mean what #pragma dynamic you should use, the value is in cells. 1 cell is 4 bytes, which is why #pragma dynamic 16000" sets the heap to 64,000 bytes.

Usually I recommend just setting it to 16000 no matter what. It won't break anything, the extra amount of memory usage is meaningless, and it'll make sure you never inadvertly run into any heap overflow issues (unless you do something such as recursion)
Reply


Messages In This Thread
easyDialog.inc exceed heap size - by pollo97 - 28.01.2020, 15:02
Re: easyDialog.inc exceed heap size - by Meric - 30.01.2020, 14:54
Re: easyDialog.inc exceed heap size - by Markski - 30.01.2020, 21:07
Re: easyDialog.inc exceed heap size - by Uberanwar - 31.01.2020, 07:12
Re: easyDialog.inc exceed heap size - by Markski - 31.01.2020, 12:41
Re: easyDialog.inc exceed heap size - by pollo97 - 01.02.2020, 14:26

Forum Jump:


Users browsing this thread: 1 Guest(s)