python-eel / Eel

A little Python library for making simple Electron-like HTML/JS GUI apps
MIT License
6.44k stars 587 forks source link

Eel app size 185mb, taking too long to run #517

Closed shivamjadhav2000 closed 3 years ago

shivamjadhav2000 commented 3 years ago

I have created a desktop app using eel which is turned to be around 185mb , which also might be causing long time to render html and start the app basically, how can I optimize the app and reduce uptime

cra2y4ngel commented 3 years ago

check which Python modules you have imported, unnecessary modules will be imported which may be imported by other modules, for example, if you use openpyxl, it will import numpy and pandas , this two packages take about 16MB.

you could read the Documention of pyinstaller to learn how to exclude them. Mostly add the param : --exclude numpy --exclude pandas

luciferamji commented 3 years ago

@cra2y4ngel is correct. You must not be using any separate envs for the same . just make a separe env and install only those modules needed.

shivamjadhav2000 commented 3 years ago

@cra2y4ngel I should do that and optimize the app, thanks for the tip , means a lot.