Quantcast

GParsExecutorsPoolEnhancer v/s ParallelEnhancer in GPars

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

GParsExecutorsPoolEnhancer v/s ParallelEnhancer in GPars

bond_
What is the difference between:
  1. GParsExecutorsPoolEnhancer
  2. ParallelEnhancer
Ref: <a href="http://gpars.org/0.12/guide/guide/3.%20Data%20Parallelism.html#3.1 Parallel Collections">http://gpars.org/0.12/guide/guide/3.%20Data%20Parallelism.html#3.1 Parallel Collections

--
Thanks and regards,
Ravi Teja

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: GParsExecutorsPoolEnhancer v/s ParallelEnhancer in GPars

basejump (Josh)
You are asking this on the wrong list. 
but to answer your question
the ParrallelEnhancer used GParsPool which uses JSR-166y and is generally faster.
the ExecutorPoolEnhancer uses GParsExecutoPool which uses the Java Executor classes. Not as efficient and if you are trying to use and existingPool it will not wait for each thread to finish.
the docs should have more info on both of those.

On Jul 4, 2012, at 9:01 AM, Raviteja Lokineni wrote:

What is the difference between:
  1. GParsExecutorsPoolEnhancer
  2. ParallelEnhancer
Ref: <a href="http://gpars.org/0.12/guide/guide/3.%20Data%20Parallelism.html#3.1 Parallel Collections">http://gpars.org/0.12/guide/guide/3.%20Data%20Parallelism.html#3.1 Parallel Collections

--
Thanks and regards,
Ravi Teja


Loading...