Message131525
| Author |
sbt |
| Recipients |
brian.curtin, kristjan.jonsson, loewis, pitrou, sbt, tim.golden |
| Date |
2011年03月20日.18:51:30 |
| SpamBayes Score |
2.212005e-06 |
| Marked as misclassified |
No |
| Message-id |
<1300647091.7.0.855144541193.issue11618@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Have you tried benchmarking it?
Interlocked functions are *much* faster than Win32 mutex/semaphores in the uncontended case.
It only doubles the time taken for a "l.acquire(); l.release()" loop in Python code, but at the C level it is probably 10 times slower.
Do you really want the GIL to be 10 times slower in the uncontended case? ;-) |
|