Blynk MicroPython running very slow on esp8266

Hi there,

I just found that the blynk library is causing my micropython code to run extremely slowly. I did a test where I did a print statement in a loop, and I got a printout every 0.5 to 1 millisecond. With blynk.run() added, it slows to a crawl of 1 printout only every 50 milliseconds.

This is a massive performance hit. Is there a way to speed things up, or some suggestions for best practices to work around it? I might have to abandon micropython altogether because of this.

At these speeds its impossible to read pins at a high frequency.

Any help will be appreciated.

Kind regards,
Corrie

I’m not an expert but from what I’ve read MicroPython is ram intensive, unfortunatly the esp8266 doesn’t have a lot of ram. It’s recommended to use an ESP32 for MicroPython

Which library are you using? Is it this one?

@Pavel I am using this one: https://github.com/vshymanskyy/blynk-library-python

Im using v0.2.0, as the latest version didnt want to boot and kept giving memory problems. The one that you posted here, is that the official one??

@jcdock Yes that is the plan. Just struggling to get my hands on one here in South Africa. Hopefully soon, so I can be rid of all the memory woes.