Page 1 of 1

1.13 - import libs is slower than 1.12 ?

Posted: Wed Oct 28, 2020 6:59 pm
by prem111
Hi. I noticed that the library imports slower in version 1.13. What is it caused by? I am using the unstable version.

Re: 1.13 - import libs is slower than 1.12 ?

Posted: Wed Oct 28, 2020 7:11 pm
by stijn
Which libraries, and how did you measure this exactly?

Re: 1.13 - import libs is slower than 1.12 ?

Posted: Wed Oct 28, 2020 11:51 pm
by jimmo
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.

Re: 1.13 - import libs is slower than 1.12 ?

Posted: Thu Oct 29, 2020 8:07 am
by prem111
Board is esp32. But it is like that with every boot. The difference can be seen when importing e.g. uasyncio.

Re: 1.13 - import libs is slower than 1.12 ?

Posted: Thu Oct 29, 2020 10:51 am
by jimmo
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).