Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix parallel collection's configuration API (task support) #6998

Closed
scabug opened this issue Jan 20, 2013 · 4 comments
Closed

Fix parallel collection's configuration API (task support) #6998

scabug opened this issue Jan 20, 2013 · 4 comments

Comments

@scabug
Copy link

scabug commented Jan 20, 2013

There was a lot of debate regarding possible improvements, but it didn't make it into 2.10.

The issue basically revolves around getting rid of the mutable field in favor of an immutable approach.

Example with default configuration:

Array(1,2,3).par.map(...)

Current tasksupport API:

val array = Array(1,2,3).par
array.tasksupport = otherTaskSupport
array.map(...)

An additional issue is that this API also breaks the “flow” of operations.

The proposed improvements are along the lines of something like:

Array(1,2,3).parWith(otherTaskSupport).map(...)

Considering that the library has already shipped with 2.10, the current API probably needs to be deprecated before it can be removed.

Old discussion: https://groups.google.com/d/topic/scala-internals/lzxVlexkqEg/discussion

Old pull request: scala/scala#930

@scabug
Copy link
Author

scabug commented Jan 20, 2013

Imported From: https://issues.scala-lang.org/browse/SI-6998?orig=1
Reporter: @soc
Affected Versions: 2.10.0, 2.11.0-M1

@scabug
Copy link
Author

scabug commented Jan 20, 2013

@soc said:
I created a pull request to get this going again: scala/scala#1937

@scabug
Copy link
Author

scabug commented Jun 3, 2016

@erikerlandson said:
I'd love to see this. Yet another PR, against 2.12.x:
scala/scala#5212

@SethTisue
Copy link
Member

please open a new ticket at https://github.com/scala/scala-parallel-collections/issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants