21 Jul
2010
21 Jul
'10
4:04 a.m.
On Wed, 21 Jul 2010 02:51:53 +0200
Sturla Molden
Thread synchronization with threading.Lock can be expensive. But consider this: Why should the active thread need to aquire a mutex, when it already holds one? That would be the GIL.
Do you have any data about supposed cost of threading.Lock (or RLock)? There is no point in trying to optimize a perceived bottleneck if the bottleneck doesn't exist.