Martijn Voncken wrote:

IPC can't be faster than threading because you need to convert
python has a GIL , and multicore is the future.
ipc will scale better on multicore processsors.
also, threads may be slower due to internal locking they introduce to the interpreter. i don't know if this is still true, as this dates back to 2003, quoting *Erno Kuusela in*: http://mail.python.org/pipermail/python-list/2003-April/159177.html

"in addition, enabling threading (creating the first thread) turns on all the locking machinery in the python interpreter. this causes everything to slow down somewhat. on my pc, running pystone in a thread goes about 50% slower than normally."

so as you are concerned about speed, threads may be a very bad idea.. (unless that has been improved since. i think they are usually a bad idea anyhow so haven't tested)

Martijn.
~Toni


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel

Reply via email to