How we made Python's packaging library 3x faster
Summary
This article details a collaborative effort to make Python's packaging library significantly faster by optimizing core operations such as Version handling, SpecifierSet processing, and regex parsing. It presents a sequence of concrete speedups validated with asv benchmarks and practical impact on pip's resolver, culminating in multi-fold improvements across several hot paths and an RC release of packaging.