1.13 - import libs is slower than 1.12 ?

C programming, build, interpreter/VM.
Target audience: MicroPython Developers.
Post Reply
prem111
Posts: 97
Joined: Sun Feb 23, 2020 3:18 pm

1.13 - import libs is slower than 1.12 ?

Post by prem111 » Wed Oct 28, 2020 6:59 pm

Hi. I noticed that the library imports slower in version 1.13. What is it caused by? I am using the unstable version.

stijn
Posts: 507
Joined: Thu Apr 24, 2014 9:13 am

Re: 1.13 - import libs is slower than 1.12 ?

Post by stijn » Wed Oct 28, 2020 7:11 pm

Which libraries, and how did you measure this exactly?

User avatar
jimmo
Posts: 2015
Joined: Tue Aug 08, 2017 1:57 am
Location: Sydney, Australia
Contact:

Re: 1.13 - import libs is slower than 1.12 ?

Post by jimmo » Wed Oct 28, 2020 11:51 pm

And which board/port are you using?

The ESP32 and ESP8266 ports are very sensitive to code location changes due to caching effects and architectural issues. I see quite dramatic speed differences from just re-arranging code that is otherwise functionally identical.

prem111
Posts: 97
Joined: Sun Feb 23, 2020 3:18 pm

Re: 1.13 - import libs is slower than 1.12 ?

Post by prem111 » Thu Oct 29, 2020 8:07 am

Board is esp32. But it is like that with every boot. The difference can be seen when importing e.g. uasyncio.

User avatar
jimmo
Posts: 2015
Joined: Tue Aug 08, 2017 1:57 am
Location: Sydney, Australia
Contact:

Re: 1.13 - import libs is slower than 1.12 ?

Post by jimmo » Thu Oct 29, 2020 10:51 am

How did you measure it? How much difference is there?

Note that in 1.13 vs 1.12 would be a different version of uasyncio too (v3 vs v2).

Post Reply