Repository navigation
Does Bytecode (.pyc) vs. Source (.py) Compilation Affect Flet Android Cold-Start Performance? #6207
Replies: 1 comment
|
Yes. And since Flet 1.0
The default depends on the version:
How much it saves depends on how much you import at startup. It's mostly the compile time of your app plus every pure-Python package you import, so big pure-Python dependencies gain the most. Bytecode doesn't change the rest of the blank-screen time (starting the interpreter, loading native extensions, Flutter start-up). To see where the time goes, compare a build with and without |
Uh oh!
There was an error while loading. Please reload this page.
In Flet v1, does pre-compiling the Python source into .pyc files inside the APK assets significantly reduce the cold-start 'blank screen' time compared to raw .py files? Specifically, does the serious_python runtime skip the compilation step on Android when bytecode is already present in the app archive?"
All reactions