Status: Accepted
Owner: camillob...@
gmail.comLabels: Type-Feature Target-Collection Milestone-3.0
New issue 7608 by camillob...@
gmail.com: Add a parallel Collection enumeration
http://code.google.com/p/pharo/issues/detail?id=7608I starte a small project to implement parallel operations on these collection.
Example:
--------
"Download url contents in parallel"
urls parallel collect: [ :url | ZnClient get: url ]
"Download url contents with 100 connections in parallel"
(urls parallel: 100) collect: [ :url | ZnClient get: url ]
New Classes:
------------
- ParallelIterator
Manages the number of concurrent processes and implementes the basic enumeration methods (such as #do: #select: #collect:) in a parallel manner
- ThreadPool: following the java implementation, manages a set of threads and runs only a certain amount of processes in parallel
Parallel Methods so far:
------------------------
- allSatisfy:
- anySatisfy:
- collect:
- collect:thenSelect:
- detect:
- do:without:
- noneSatisfy:
- reject:
- withIndexDo:
- detect:ifNone:
- do:
- doWithIndex:
Application:
------------
Mainly when doing file and network operations it is nice to have a simple parallel interface
Sources:
--------
http://smalltalkhub.com/#!/~dh83/parallel-iterator
--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
_______________________________________________
Pharo-bugtracker mailing list
Pharo-bugtracker@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker