Jython, GILs and object locking.
daniel at dittmar.net
Wed Oct 15 22:13:30 CEST 2003
Harri Pesonen wrote:
> It will be faster because there is no need to Py_INCREF(Py_None) or
> Py_DECREF(Py_None) or other static variables, and because there is no
> GIL or thread state swapping, but it will be slower because there will
> be an extra state argument in function calls. I guess the speed will be
> about the same for single-threaded programs. The real advantage comes of
> course from free-threading.
Py_INCREF and Py_DECREF will have to use some kind of interlock to
synchronize reference counting, this will probably slow down things a lot.
More information about the Python-list