Calling Module functions in tight loops a good idea?

Is it bad for the performance to call module functions in a heartbeat loop?

If it isn’t necessary to do so, then yes. Also depends on the overhead of those functions (how large they are, how many operations they undertake etc.).

1 Like

It would be the same as just executing a local function within the same script, it depends on your function ^

1 Like