Program memory optimization best practices

Hi everyone,

What should be done to reduce the program size, is there a best practices doc?

Someone might be able to provide more details, but I don’t think a best-practices exists for limiting memory usage in XOD.

The primary advice I can give is to avoid using strings as much as possible. There was also a XOD node that unexpectedly uses quite a bit of memory…I think it was the ‘select’ node…

Unfortunately, one of the trade-offs of a higher-level language like XOD that abstracts out the low-level details is that it is not likely to be optimized for speed or memory. You get generic building blocks that cover many cases rather than an optimized solution for any specific problem.

Thanks for your advice, I will apply it.