Re:So Pythonistas, you want to get rid of the GIL...
by smeg on Friday July 06, 2012 @04:27AM
(#4206897)
Or just write the fast bits in C, call it from Python via ctypes and get the GIL unlocked and parallelism for free.
Re:So Pythonistas, you want to get rid of the GIL...
by Nursie on Friday July 06, 2012 @04:32AM
(#4206906)
If my projects were large enough to make that a more attractive option, sure, that's a great plan.
Usually when I've hit this situation I'm writing something simple but processor intensive, and it's easier for me (12 years commercial parallel/distributed C programming, amateur python enthusiast) to go back to home ground at this point.
If I need performance badly enough that I'm considering making major structural changes in order to utilise multi-process or find some other way around the GIL, I probably ought to be considering using a language that supports what I'm trying to do. Of course my python projects tend to be fairly small.