This is a great case study for how, among other things, Python’s new statistical profiler (in 3.15) can yield big wins by revealing unexpected bottlenecks. There’s also a nice sidebar on how to take ...