I'm writing a Python program with a lot of file access.  It's running surprisingly slowly, so I used cProfile to find out what was taking the time.
It seems there's a lot of time spent in what Python is reporting as "{built-in method acquire}".  I have no idea what this method is.  What is it, and how can I speed up my program?
Using threads for IO is a bad idea. Threading won't make your program wait faster. You can achieve better results by using asynchronous I/O and an event loop; Post more information about your program, and why you are using threads.
What is Python's "built-in method acquire"? How can I speed it up?