whitphx/stlite

Make the requirements archive to install at init

whitphx opened this issue · 7 comments

One major time-taking part of the init process may be downloading and installing the packages (we must measure it first!).
So utilizing the archive-loading feature that is currently used in @stlite/desktop only may improve it.

  • Bundle the necessary packages into the archive at build time and ship it with @stlite/mountable from CDN.
  • #901 can bundle the user-specific packages at build time.

Interesting! In most apps I've built with Stlite, installing packages definitely took +70% of the boot-up time.

I'm no expert in the underlying technology behind Stlite, but I wonder what other similar parts that could be done at build time?
I believe that currently Stlite do some work each time you open the app to mount the python source code, data etc.. (and maybe some sort of compilation? not sure). Is is possible to do all the repetitive work (from source to boot-up) in build time?