this post was submitted on 26 Dec 2025
59 points (98.4% liked)

Python

7818 readers
17 users here now

Welcome to the Python community on the programming.dev Lemmy instance!

📅 Events

PastNovember 2023

October 2023

July 2023

August 2023

September 2023

🐍 Python project:
💓 Python Community:
✨ Python Ecosystem:
🌌 Fediverse
Communities
Projects
Feeds

founded 2 years ago
MODERATORS
top 3 comments
sorted by: hot top controversial new old
[–] lascapi@jlai.lu 5 points 2 months ago

Amazing article, I love how he explains well the differents level to 'optimize'.

[–] NostraDavid@programming.dev 1 points 1 month ago

Very much reminds me of Casey Muratori's "Philosophies of Optimization" talk where he mentioned what he calls "pessimization" - instead of optimizing (making a program do a thing faster), pessimize it - make it do less.

The less a program does/needs to do, the faster it will be.

[–] mina86@lemmy.wtf 1 points 1 month ago

No bytecode compilation by default. pip compiles .py files to .pyc during installation. uv skips this step, shaving time off every install. You can opt in if you want it.

So it makes installation faster by making runtime slower.

Ignoring requires-python upper bounds. When a package says it requires python<4.0, uv ignores the upper bound and only checks the lower. This reduces resolver backtracking dramatically since upper bounds are almost always wrong. Packages declare python<4.0 because they haven’t tested on Python 4, not because they’ll actually break. The constraint is defensive, not predictive.

So it makes installation faster by installing untested code.

Sounds like a non-starter to me.