• lascapi@jlai.lu
    link
    fedilink
    arrow-up
    5
    ·
    2 months ago

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

  • mina86
    link
    fedilink
    English
    arrow-up
    1
    ·
    7 days 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.