Replit· 19 MarIntroducing the Python package cache
Replit caches popular Python packages to speed up installs.
Capability change
Replit enabled a Python package cache that pre-populates popular pip packages in each repl's cache, eliminating the download step for most Python repls.
The cache uses an Overlay Filesystem to share a read-only snapshot across repls while keeping each repl's cache independent.
Average package installation time across Always On repls has decreased by roughly 40%.
From the source
Every time you run a repl or a repl wakes up, UPM checks to see if it needs to download and install any dependencies. This is handy (no matter what's gone inside your repl, it will always have the dependencies it needs) but slow: UPM needs to download typically tens of megabytes worth of packages, extract them on the local filesystem, and sometimes also pre-compile them for better runtime performance. Or at least it used to be slow until yesterday when we enabled the Python package cache, so now the most popular Python packages are pre-populated in pip's cache ( /home/runner/.cache/pip ), so the download step is going to be mostly gone for the vast majority of Python repls!
replit.com