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

Explore Alternative Compilers #62

Open
lbeckman314 opened this issue Apr 23, 2024 · 0 comments
Open

Explore Alternative Compilers #62

lbeckman314 opened this issue Apr 23, 2024 · 0 comments
Labels
enhancement New feature or request low priority Can be completed in the next 1-2 months

Comments

@lbeckman314
Copy link
Collaborator

lbeckman314 commented Apr 23, 2024

Overview

Explore using alternatives to Pyinstaller to help with startup time.

Nuitka (~0.3 seconds)

source venv/bin/activate

➜ python -m pip install nuitka

➜ python -m nuitka drs_downloader/cli.py

➜ time ./cli.bin
Usage: cli.bin [OPTIONS] COMMAND [ARGS]...

Options:
  --help  Show this message and exit.

Commands:
  gen3   Copy files from gen3 server.
  mock   Generate test files locally, without the need for server.
  terra  Copy files from terra.bio
./cli.bin  0.16s user 0.04s system 59% cpu 0.336 total   <---- ~0.3 seconds

PyInstaller (~6 seconds)

time ./dist/drs_downloader
Initializing ...
Usage: drs_downloader [OPTIONS] COMMAND [ARGS]...

Options:
  --help  Show this message and exit.

Commands:
  gen3   Copy files from gen3 server.
  mock   Generate test files locally, without the need for server.
  terra  Copy files from terra.bio
./dist/drs_downloader  0.30s user 0.11s system 6% cpu 5.983 total   <---- ~6 seconds
@lbeckman314 lbeckman314 added the enhancement New feature or request label Apr 23, 2024
@lbeckman314 lbeckman314 added the low priority Can be completed in the next 1-2 months label Sep 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request low priority Can be completed in the next 1-2 months
Projects
None yet
Development

No branches or pull requests

1 participant