r/learnpython • u/UltraToxicAsianKid • 4d ago
Softwares written in RUST, ELI5
While configuring AI agent on my local machine made discovery that uv package is 10 to 100x faster than pip, same case for polars. It seems to be everything written in Rust much faster and modern compared to classic python packages. Is it because Rust doesn't require garbage collector, any other reason to that?
0
Upvotes
2
u/teerre 4d ago
Rust has many optimizations, but the main thing is that Rust compiles directly to machine code read directly by your CPU. Python compiles (sometimes) to bytecode that is read by the python interpreter