camillo you should discuss with olivier auverlot because he implemented fasterthanlight (in sthub/rmod) a pool manager for netwrok connection. Stef Begin forwarded message:
From: pharo@googlecode.com Subject: [Pharo-bugtracker] Issue 7608 in pharo: Add a parallel Collection enumeration Date: February 26, 2013 11:03:36 PM GMT+01:00 To: pharo-bugtracker@lists.gforge.inria.fr Reply-To: codesite-noreply@google.com
Status: Accepted Owner: camillob...@gmail.com Labels: 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=7608
I 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