Jython, GILs and object locking.

John J. Lee jjl at pobox.com
Sat Oct 11 07:50:31 EDT 2003


Michael Chermside <mcherm at mcherm.com> writes:
[...]
> But if you DO have a task which is compute bound, and it's
> the only task running on the machine, and the machine has
> multiple processors, and if you particularly care to have
> this task run faster, well then Python is not up to the
> job because of the GIL. Of course, you should look into
[...]

That's still too strong, even given your proviso about using C++.
First, the code you're already using may already parallelize well
enough thanks to C code releasing the GIL.  Second, using something
like POSH, or splitting up your threads into bunches, in separate
processes, also works.  Not perfect, of course.


John




More information about the Python-list mailing list