782 |
|
if ((p = next) == null) return; |
783 |
|
lastRet = p; |
784 |
|
next = null; |
785 |
< |
final int batchSize = 32; |
785 |
> |
final int batchSize = 64; |
786 |
|
Object[] es = null; |
787 |
|
int n, len = 1; |
788 |
|
do { |
958 |
|
void forEachFrom(Consumer<? super E> action, Node<E> p) { |
959 |
|
// Extract batches of elements while holding the lock; then |
960 |
|
// run the action on the elements while not |
961 |
< |
final int batchSize = 32; // max number of elements per batch |
961 |
> |
final int batchSize = 64; // max number of elements per batch |
962 |
|
Object[] es = null; // container for batch of elements |
963 |
|
int n, len = 0; |
964 |
|
do { |