When processing large amounts of data in Java, you can reduce latency in your applications by processing the data in parallel. Learn how to use Java streams to process data in parallel instead of waiting for each step to complete.
- [Instructor] So we've come quite a long way … in our understanding of stream … since the beginning of the section, … and before we move on, … there's one more little thing … that we're going to look at regarding streams. … You see, in all the examples that we've been using so far … with functions like map, filter, and so on, … the streams that we've been using have been serial streams, … and what this means is that all the elements in our stream … are processed one after the other in order. … We saw proof of this earlier … when we put a system.out.println statement … inside the function we pass to reduce. … When we run this program, … we see that all the elements from our original list … are processed one by one … in the order that they were found in. … Now the interesting thing, though, … is that there's an alternative to this. … Instead of using serial streams … to process our list elements, … we can use something called parallel streams. … Now before we get into exactly what parallel streams are …
Skill Level Advanced
Java Design Patterns: Structuralwith Bethan Palmer1h 38m Intermediate
1. Introduction to Functional Programming
2. First-Class Functions
3. Working with Streams in Java
4. Advanced Concepts
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.