[Numpy-discussion] Fast threading solution thoughts
Thu Feb 12 00:18:46 CST 2009
On Thu, Feb 12, 2009 at 00:03, Brian Granger <email@example.com> wrote:
>> Eric Jones tried to do this with pthreads in C some time ago. His work is here:
>> The lock overhead makes it usually not worthwhile.
> I was under the impression that Eric's implementation didn't use a
> thread pool. Thus I thought the bottleneck was the thread creation
> time for his implementation. Eric can you comment?
It does use a thread pool. See PyUFunc_GenericFunction:
"I have come to believe that the whole world is an enigma, a harmless
enigma that is made terrible by our own mad attempt to interpret it as
though it had an underlying truth."
-- Umberto Eco
More information about the Numpy-discussion