Replies: 2 comments
-
It's hard to believe that. |
Beta Was this translation helpful? Give feedback.
-
Hmm - off; so I am using a profiler like this:
That basically does a rolling; tapered average; with the last 5000 being the bulk of the timing. This is done at a rate of a bit over 1kHz. The call to
Yet I am seeing below - around 73 microseconds spend in
And if I comment this |
Beta Was this translation helpful? Give feedback.
-
Board
All
Device Description
All - with OTA enabled
Hardware Configuration
All, with OTA enabled
Version
latest master (checkout manually)
IDE Name
any
Operating System
any
Flash frequency
any
PSRAM enabled
yes
Upload speed
any
Description
ArduinoOTA requires a call to handle() in loop() for its house keeping. With the salient parts:
it appears that always doing a flush is relatively expensive; i.e. it takes 50-80 microseconds even when there is no packet seen. May be good to only do this when parsePacket() actually sees a packet (even if it is zerolenght or corrupted packet). Or move the flush into the exit routing of parsePacket().
Sketch
Debug Message
Other Steps to Reproduce
No response
I have checked existing issues, online documentation and the Troubleshooting Guide
Beta Was this translation helpful? Give feedback.
All reactions