[Python-ideas] pmap, preduce, pmapreduce?
Joao S. O. Bueno
jsbueno at python.org.br
Sat May 26 06:17:29 CEST 2012
On 25 May 2012 18:37, Mike Meyer <mwm at mired.org> wrote:
> Another crazy idea that may not be possible, based on my finally
> getting around to watching Guy Steele's talks about what he's up to
> these days (http://vimeo.com/6624203).
>
> Given a function that takes a list (or a container class which len
> doesn't consume) and a function, and then applies that function to the
> list in some way: either element wise, or in pairs of elements/results,
> but does it in parallel. It will hold the GIL, but run the function
> calls in distinct threads, meaning two applications of the function
> could interfere with each other.
Just like the already existing "map" method in concurrent.futures.Executor
? *
js
-><-
* all praise the Python time machine
> <mike
> --
> Mike Meyer <mwm at mired.org> http://www.mired.org/
More information about the Python-ideas
mailing list