Skip to content

Explore Alternative Compilers #62

@lbeckman314

Description

@lbeckman314

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestlow priorityCan be completed in the next 1-2 months

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions