You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Astral has anounced "uv" as a drop in replacement tool for, among other things, "pip install" and virtual environment creation.
When Mu needs to recreate a user venv this can take a significant amount of time, specially in slow computers, so a tool that claims to significantly help in this regard sounds quite interesting.
I've done a really quick hack to try it out: 105c62f
And on my machine (i7 Macbook) the time it took to launch Mu when there is no user venv went from 44 to 15 secons, so that's almost 3 times faster 🚀 with uv.
And that's without using uv to create the venv (still using virtualenv, so theoretically uv could save time there as well) and this hack also adds the extra steps to install uv inside the venv (we could ship uv installed together with Mu and use that directly).
As this is a rust application, we also want to make sure they provide wheels for all Mu supported platforms. Pi being armv7 might be the only thing less common, and looks like wheels are provided for this platform as well: https://pypi.org/project/uv/#files
So this looks promising, would be grea if we could incorporate it with Mu.
The text was updated successfully, but these errors were encountered:
carlosperate
changed the title
Enhancement: Using uv to manage venv and pip install
Enhancement: Using uv to manage venv and pip install
Feb 16, 2024
Astral has anounced "uv" as a drop in replacement tool for, among other things, "pip install" and virtual environment creation.
When Mu needs to recreate a user venv this can take a significant amount of time, specially in slow computers, so a tool that claims to significantly help in this regard sounds quite interesting.
I've done a really quick hack to try it out: 105c62f
And on my machine (i7 Macbook) the time it took to launch Mu when there is no user venv went from 44 to 15 secons, so that's almost 3 times faster 🚀 with uv.
And that's without using uv to create the venv (still using virtualenv, so theoretically uv could save time there as well) and this hack also adds the extra steps to install uv inside the venv (we could ship uv installed together with Mu and use that directly).
As this is a rust application, we also want to make sure they provide wheels for all Mu supported platforms. Pi being armv7 might be the only thing less common, and looks like wheels are provided for this platform as well: https://pypi.org/project/uv/#files
So this looks promising, would be grea if we could incorporate it with Mu.
The text was updated successfully, but these errors were encountered: