Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This style of mutex will also power PyMutex in Python 3.13. I have real-world benchmarks showing how much faster PyMutex is than the old PyThread_type_lock that was available before 3.13.


Can I use PyMutex from my own Python code?


No, it wouldn’t make sense to. Use threading.Lock for that. PyMutex is available in the CPython C API.


Any rough summary?


https://github.com/numpy/numpy/issues/26510#issuecomment-229...

And now that I look at that again I realize I forgot to finish that up!


I wonder how much it will help in real code. The no-gil build is still easily 50% slower and the regular build showed a slowdown of 50% for Sphinx, which is why the incremental garbage collector was removed just this week.

Python development is in total chaos on all social and technical fronts due to incompetent and malicious leadership.


I'm very ready to believe your description of the state of python is true but I've been out of the loop on python for a while. I'm interested in more details. Can you expand or point to any articles that give more details?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: