Message131525
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? ;-) |
|
Date |
User |
Action |
Args |
2011-03-20 18:51:31 | sbt | set | recipients:
+ sbt, loewis, pitrou, kristjan.jonsson, tim.golden, brian.curtin |
2011-03-20 18:51:31 | sbt | set | messageid: <1300647091.7.0.855144541193.issue11618@psf.upfronthosting.co.za> |
2011-03-20 18:51:30 | sbt | link | issue11618 messages |
2011-03-20 18:51:30 | sbt | create | |
|