4 ms·
I think you can make a non thread-safe list by just making the same object without the lock described at https://peps.python.org/pep-0703/#container-thread-safe
by Znafon 3y ago
I think you can make a non thread-safe list by just making the same object without the lock described at https://peps.python.org/pep-0703/#container-thread-safety https://peps.python.org/pep-0703/#container-thread-safety if you really want the maximum performance of single threads.
Maybe it could be part of a non_threadsafe_containers module on Pypi.