> On 12/2/10 3:08 AM, Dag Sverre Seljebotn wrote: > I expect that being able to inline a generator would be quite a trick.
Except that applying a function along an axis is the kind of thing onw might want to workshare/multithread in a "nogil" block. Using a Python object like an iterator here kind of takes that advantage away, i.e. one has to hold the GIL to access the iterator. In additon to make C level threads compete for the GIL, it also prevents OpenMP's scheduler from balancing the work load. That is why I rather collect a temporary array of pointers instead. Sturla _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
