Message 174771 - Python tracker (original) (raw)

Now benchmarks and special casing for Py_ssize_t values needed.

I thought about that, but I don't think it's worth it. I did some quick timings, and as expected the new version of slice.indices is somewhat slower than the original. But I think adding a special case for Py_ssize_t values would be premature optimization.