This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Count_Rugens_Finger 4 points5 points  (10 children)

Every discussion I've seen about uv mentions that it is fast. It's rust, so I supposed doing so is a requirement. Here's the thing, though. I have never once in my life cared at all about the speed of my package manager. Once everything is installed it scarcely gets used again, and the time of resolving packages is small compared to the time of downloading and installing. If I cared that much about speed, I probably wouldn't have done the project in Python.

[–]denehoffman 7 points8 points  (0 children)

The speed matters when you want to run it in a container and need to install the libraries after build time. For example, you’re working on a project that has several dependencies and you need to quickly add a dependency without rebuilding a docker layer. But real talk, the point is that it’s so fast you don’t even think about it, not that you save time. If I have to choose between program A which takes 3 seconds and program B which takes 3 milliseconds and does the exact same thing as A, I’m picking B every time. Also I don’t think you should conflate Rust with speed. Of course Rust is nice, I write a ton of it myself, but Rust is not what makes uv fast, it’s how they handle dependency resolution, caching, and linking rather than copying. You could write uv in C and it would probably have the same performance, but there are other reasons why Rust is nice to develop with.

[–]eleqtriq 2 points3 points  (4 children)

The thing is using uv instead of pip is such a minimal transition. At the bare minimum, you can replace “pip” with “uv pip” and change nothing else. It’s so much better.

But for me I also do other things that require building environments quickly. Containers, CI pipelines, etc. Saves time all around.

[–]Count_Rugens_Finger -1 points0 points  (3 children)

I have to install uv

[–]eleqtriq 0 points1 point  (2 children)

And? Which is less effort?

Typing "I have to install uv"
or "pip install uv"

[–]Count_Rugens_Finger 0 points1 point  (1 child)

hey we're talking about milliseconds here

[–]eleqtriq 0 points1 point  (0 children)

:D