electrum-nmc icon indicating copy to clipboard operation
electrum-nmc copied to clipboard

Look into minification

Open JeremyRand opened this issue 5 years ago • 1 comments

Minification could decrease our binary size, which might plausibly be attractive to Tor Browser. See the following tools:

  • https://github.com/liftoff/pyminifier (GPLv3, no longer maintained)
  • https://github.com/dflook/python-minifier (MIT, maintained)

As a brief experiment, I found that python-minifier shrunk wallet.py from 23.2 KiB to 16.4 KiB (both numbers are after applying .tar.xz compression).

JeremyRand avatar Apr 28 '20 04:04 JeremyRand

I think we'd accept a PR that minifies the tarball produced by sdist if an environment variable is set. This would be submitted to a stable release branch, not master. I can then forward the PR to upstream Electrum after we merge it.

JeremyRand avatar Apr 26 '22 01:04 JeremyRand