Good morning all,
I have a program I am developing and am running into an unwanted behaviour - random pauses. I am tracking the time certain areas of the program for cycle time (processing time) as I need them to be efficient. As an example, the routine would typically take .69 milliseconds, but sometimes will spike to 10 or more milliseconds. The processing within the function shouldn't vary that much as it is primarily computational, not accessing WiFi etc.
I am suspecting there is a some micropython tasks, like the garbage collector, that run at random times causing these pauses I am seeing.
Can anyone shed some light on what potential causes could be?
Thanks,
Chris
I have a program I am developing and am running into an unwanted behaviour - random pauses. I am tracking the time certain areas of the program for cycle time (processing time) as I need them to be efficient. As an example, the routine would typically take .69 milliseconds, but sometimes will spike to 10 or more milliseconds. The processing within the function shouldn't vary that much as it is primarily computational, not accessing WiFi etc.
I am suspecting there is a some micropython tasks, like the garbage collector, that run at random times causing these pauses I am seeing.
Can anyone shed some light on what potential causes could be?
Thanks,
Chris
Statistics: Posted by Chris D — Mon Feb 26, 2024 10:21 am