Commit 456f536
authored
Update java8-tutorial-translate.md
The original stream().sorted().count() does not perform sorting and just counts elements directly — it’s equivalent to stream().count(). This makes parallelStream().sorted().count() appear slower by comparison.1 parent 0126e03 commit 456f536
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
592 | 592 | | |
593 | 593 | | |
594 | 594 | | |
595 | | - | |
| 595 | + | |
596 | 596 | | |
597 | 597 | | |
598 | 598 | | |
| |||
612 | 612 | | |
613 | 613 | | |
614 | 614 | | |
615 | | - | |
| 615 | + | |
616 | 616 | | |
617 | 617 | | |
618 | 618 | | |
| |||
0 commit comments