Skip to content
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

.appimage is slow to start — include .pyc into the bundle #327

Open
ValdikSS opened this issue Sep 5, 2024 · 0 comments
Open

.appimage is slow to start — include .pyc into the bundle #327

ValdikSS opened this issue Sep 5, 2024 · 0 comments

Comments

@ValdikSS
Copy link

ValdikSS commented Sep 5, 2024

AppImage (Linux) version of electrum-ltc is rather slow to start, it takes about 3 seconds on my modern Intel 1340P machine.
This is because Python bytecode (.pyc files) are not included into .appimage, and since appimage could not be updated, Python compiles them every run.

If .appimage is exctracted with ./electrum-ltc-4.2.2.1-x86_64.AppImage --appimage-extract and ran from the directory (so it could update itself), subsequent runs are vastly faster.

$ time ./AppRun daemon --help
…
real    0m1,230s
user    0m1,124s
sys     0m0,096s

$ time ./AppRun daemon --help
…
real    0m0,348s
user    0m0,306s
sys     0m0,040s

Please run the application once in your building process, and include all the built .pyc files into .appimage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant