What drawbacks are there to always using the max allocation count for things like user limits and math blocks?
Hi @todd_mm,
I recommend only allocating the ones you plan to use.
Processing:
- An enabled unconfigured Math block costs you a loop pass + pointer math + function call + switch/return. This is a very small non-zero time consumption every sample.
- UserLimits shouldn’t process unless you call any of the UserLimit functions with that UserLimit #.
Memory (varies based on 32bit vs 64bit builds):
- UserLimit: 448 bytes on 32-bit firmware, 608 bytes on 64-bit firmware.
- MathBlock: 96 bytes on 32-bit firmware, 120 bytes on 64-bit firmware.
1 Like
What evidence might I observe if I’m asking the RTA to do too much calculation?
Hi @todd_mm,
I’d recommend you check out
and
It isn’t perfect but can help give you an idea of what is going on.
An inability to keep a network operational is the surest evidence of overload.
1 Like