You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm on ESP32S3. Fairly new to python. Running a master build from about 10 days ago.
I noticed that if I do multiple duplicated imports (from a function originally), it is exceedingly slow. But I was under the impression these are auto-cached and only loaded once.
The below code was my way to easily reproduce and takes about 10 seconds to run from fresh REPL. Is this expected?
I'll just import my few "conditional" modules from outside a function, but just checking if this is expected and if there's a solution to avoid. My other concern is that I have an import utils, sys, machine, etc probably in 20 different source files and have about a 5 second boot time while its importing.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm on ESP32S3. Fairly new to python. Running a master build from about 10 days ago.
I noticed that if I do multiple duplicated imports (from a function originally), it is exceedingly slow. But I was under the impression these are auto-cached and only loaded once.
The below code was my way to easily reproduce and takes about 10 seconds to run from fresh REPL. Is this expected?
I'll just import my few "conditional" modules from outside a function, but just checking if this is expected and if there's a solution to avoid. My other concern is that I have an import utils, sys, machine, etc probably in 20 different source files and have about a 5 second boot time while its importing.
Beta Was this translation helpful? Give feedback.
All reactions