pystreamapi
GitHub
  • Welcome to PyStreamAPI!
  • Quick Start
  • Reference
    • API Reference
      • Intermediate Operations
      • Terminal Operations
      • Numeric Stream
      • Error handling
    • Conditions
      • Type Conditions
      • Numeric Conditions
      • String Conditions
      • Date conditions
    • Data Loaders
  • Examples
  • Performance
  • Contribute
Powered by GitBook
On this page

Was this helpful?

Edit on GitHub

Performance

Note that parallel Streams are not always faster than sequential Streams. Especially when the number of elements is small, we can expect sequential Streams to be faster.

The operation that profits most from parallelization is filter()

If you are not sure wich implementation to choose, let the builder decide:

Stream.of(range(1000))
PreviousExamplesNextContribute

Last updated 1 year ago

Was this helpful?