RFR 8012647: Add Arrays.parallelPrefix (prefix sum, scan, cumulative sum) (original) (raw)

Alan Bateman Alan.Bateman at oracle.com
Wed Jun 12 16:07:12 UTC 2013


On 12/06/2013 15:50, Chris Hegarty wrote:

Add implementations of parallelPrefix() in Arrays for Object, int, long, and double arrays.

Specdiff: http://cr.openjdk.java.net/~chegar/8012647/ver.00/specdiff/java/util/Arrays.html Webrev: http://cr.openjdk.java.net/~chegar/8012647/ver.00/webrev/ This work was done over in the lambda forest mainly by Doug Lea, with some small spec updates by myself. Note: Some work still need to be done to clean up the test, but I would like to focus mainly on the API and try to get it finalized first. -Chris. Is the name final? Just curious if other names such as parallelScan have been considered (and discarded).

"Cumulates in parallel each element ...", I guess I would put a comma before and after "in parallel".

Otherwise the API looks good to me.

-Alan.



More information about the core-libs-dev mailing list