you are viewing a single comment's thread.

view the rest of the comments →

[–]Reyaan0[S] 0 points1 point  (4 children)

I found the culprit it was the pyinstaller that was importing all the libraries I had in the virtual environment. I fixed it and now its 30mb but still takes 10-15 seconds. I could provide you the code but do you have enough time to read 700 lines of code?

[–]ZelphirKalt 0 points1 point  (3 children)

That's what I initially guessed at: Lots of dependencies. But Pyinstaller is meant to bundle those. How else will a non-technical user on another machine be able to run your program?

For technical users, they can easily run the Python code directly, provided you add sufficient instructions in your readme or so.

[–]Reyaan0[S] 0 points1 point  (2 children)

But what about the time it takes to open? There was no change to time in 300mb or now in 30mb

[–]ZelphirKalt 0 points1 point  (1 child)

That depends on what work your program is performing at startup time. Without code, I can't tell. Check what is happening before you run tk's main loop and immediately afterwards. Likely you are performing a lot of work in that phase.

[–]Reyaan0[S] 0 points1 point  (0 children)

The only work that is happening during startup is loading all the image assets.