Pros & Cons of Java 8 Parallel Streams - Vanderbilt University
Pros & Cons of Java 8 Parallel Streams
Douglas C. Schmidt
d.schmidt@vanderbilt.edu dre.vanderbilt.edu/~schmidt
Professor of Computer Science Institute for Software Integrated Systems Vanderbilt University
Nashville, Tennessee, USA
Learning Objectives in this Lesson
? Evaluate the pros & cons of Java 8 parallel streams
2
Pros of Java 8 Parallel Streams
3
Pros of Java 8 Parallel Streams
? The Java 8 streams framework simplifies
parallel programming by shielding
developers from details of splitting, applying, & combining results
InputString1
InputString trySplit()
InputString2
trySplit()
trySplit()
InputString1.1
InputString1.2
InputString2.1
InputString2.2
Process sequentially
Process sequentially
Process sequentially
Process sequentially
join
join
join
4
Pros of Java 8 Parallel Streams
? Parallel stream implementations are often (much) faster & more scalable than sequential (stream & loops) implementations
Input Strings to Search
...
Search Phrases
45,000+ phrases
Starting SearchStreamGangTest PARALLEL_SPLITERATOR executed in 409 msecs COMPLETABLE_FUTURES_INPUTS executed in 426 msecs COMPLETABLE_FUTURES_PHASES executed in 427 msecs PARALLEL_STREAMS executed in 437 msecs PARALLEL_STREAM_PHASES executed in 440 msecs RXJAVA_PHASES executed in 485 msecs PARALLEL_STREAM_INPUTS executed in 802 msecs RXJAVA_INPUTS executed in 866 msecs SEQUENTIAL_LOOPS executed in 1638 msecs SEQUENTIAL_STREAM executed in 1958 msecs Ending SearchStreamGangTest
5
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related download
- java map and set collections university of southern california
- java 8 tutorial pdf
- map iteration in java 8
- implementing the map adt university of arizona
- java map matching 東京大学
- lambdas and streams in java 8 carnegie mellon university
- java se 8 best practices jfokus
- java list adt university of pennsylvania
- pros cons of java 8 parallel streams vanderbilt university
- java collections list set map stanford university
Related searches
- pros and cons of annuities for retirement
- pros and cons of annuitizing
- pros and cons of college
- pros and cons of free college tuition
- pros and cons of target date funds
- pros and cons of owner financing
- pros and cons of year round school
- pros and cons of online education
- pros and cons of homework
- pros and cons of going to college
- pros and cons of school uniforms
- pros and cons of debit cards