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?
you want to look for cpu used, not for "total time used" from within that method--that might help.  Sorry I don't use python but that's how it is for me in ruby :)
-r
What is Python's "built-in method acquire"? How can I speed it up?