Search found 2 matches
- Fri Aug 05, 2022 10:10 am
- Forum: General Discussion and Questions
- Topic: Performance issue with streams and uasyncio on ESP32
- Replies: 3
- Views: 3832
Re: Performance issue with streams and uasyncio on ESP32
That is what I expect behvaiour-wise but I still do not understand the large difference in performance. If I read the whole request in one go (if bytes are available) and process it myself line by line, it is much faster
- Wed Aug 03, 2022 2:59 pm
- Forum: General Discussion and Questions
- Topic: Performance issue with streams and uasyncio on ESP32
- Replies: 3
- Views: 3832
Performance issue with streams and uasyncio on ESP32
Hi guys, I am testing the server code by Peter from here on my ESP32 dev board: micropython-async/v3/as_drivers/client_server/userver.py If I change the way I read from the stream on line 34 by calling sreader.read() rather than readline(), then there is around 3x to 4x performance boost. I am attem...