logoalt Hacker News

chippiewill11/21/20241 replyview on HN

> but probably only for the first run?

It's slow on every run because it has to build the python virtual environment every time, even if it's cached all the packages


Replies

simonw11/21/2024

If you benchmark that you'll find uv spends microseconds getting the virtual environment up and running - that's its USP, they've invested a huge amount of work and ingenuity into making virtual environments so fast to create that you no longer have to think about that.

(Mainly through tricks involving hard links)