hg: lambda/lambda/jdk: Tweak batch algorithm when splitting from an sequential source.

paul.sandoz at oracle.com paul.sandoz at oracle.com
Tue Mar 19 02:20:20 PDT 2013


Changeset: 04a196355eb0
Author:    psandoz
Date:      2013-03-19 10:18 +0100
URL:       http://hg.openjdk.java.net/lambda/lambda/jdk/rev/04a196355eb0

Tweak batch algorithm when splitting from an sequential source.
- Batch size is increased.
- Keep on splitting as long the estimated size > current batch size.
Contributed-by: Doug Lea <dl at cs.oswego.edu>

! src/share/classes/java/util/LinkedList.java
! src/share/classes/java/util/Spliterators.java
! src/share/classes/java/util/concurrent/ConcurrentHashMap.java
! src/share/classes/java/util/concurrent/ConcurrentLinkedDeque.java
! src/share/classes/java/util/concurrent/ConcurrentLinkedQueue.java
! src/share/classes/java/util/concurrent/ConcurrentSkipListMap.java
! src/share/classes/java/util/concurrent/LinkedBlockingDeque.java
! src/share/classes/java/util/concurrent/LinkedBlockingQueue.java
! src/share/classes/java/util/concurrent/LinkedTransferQueue.java
+ test-ng/tests/org/openjdk/tests/java/util/stream/SpliteratorLateBindingFailFastTest.java
- test-ng/tests/org/openjdk/tests/java/util/stream/SpliteratorLateBindingFailTestTest.java
! test-ng/tests/org/openjdk/tests/java/util/stream/SpliteratorTraversingAndSplittingTest.java



More information about the lambda-dev mailing list