1

Topic: to receive parallelStream

Is ArrayList on a small amount of elements, about equal to an amount of kernels of the processor. It is necessary to fulfill over each element that that like map and further . And to do it it is necessary parallely, operation map is fulfilled over each element of the order of 400 milliseconds. If I pull parallelStream ().map (), I receive stream, and further I do serial reduce it is clarified that Java not  line. Whether it is possible as that simply to force it all the same it ? Very much it would not be desirable to write pens all these starts of flows and barriers.

2

Re: to receive parallelStream

3

Re: to receive parallelStream

Hello, elmal, you wrote: E> Is ArrayList on a small amount of elements, about equal to an amount of kernels of the processor. E> it is necessary to fulfill over each element that that like map and further . And to do it it is necessary parallely, operation map is fulfilled over each element of the order of 400 milliseconds. E> if I pull parallelStream ().map (), receive stream, and further I do serial reduce it is clarified that Java not  line. Whether it is possible as that simply to force it all the same it ? Very much it would not be desirable to write pens all these starts of flows and barriers.  there restriction a the size  slices. It is possible to use something of type of it http://projectreactor.io/docs/core/rele … rralelflux