-
Notifications
You must be signed in to change notification settings - Fork 482
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Optimizing app.zip with tree shaking? #3099
Comments
I don't think it is possible at this point in time.. For context :
Duplicate of : |
intresting. though i dont think its a duplicate of #3056 because this request optimization of the flet build web process. with flet build web --wasm we are getting close to sub 3 second start up, but scrunching down app.zip would be the last mile |
My guts tell me tree-shaking for Python is non-trivial task. Some tools, such as PyInstaller (or maybe Nuitka?) tries to solve that, but it's not 100% possible to analyze all imports. |
My apologies, i saw
The problem with python is those pesky C extensions, those are pretty much the size gobblers. |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
A minimal "hello flet" web when compiled with flet build web produces an app.zip of 3 megs. Inside is the entirety of flet with controls not used by the app.
This produces a long startup time making the user experience feel laggy even broken
Is there a possibility of 'tree shaking' so the resulting app.zip only contains the necessary flet code that is used by the application.
The idea would be to do a source analysis and only use the stuff that is imported.
Or allow the developer to list out the components they want to include.
The text was updated successfully, but these errors were encountered: