Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

8
  • Then using traditional threads would be appropriate? Commented Jun 16, 2015 at 21:05
  • 1
    I didn't say that. I would trust the stream API to be better implemented than anything you wrote from scratch, even if you had information about the machine. Commented Jun 16, 2015 at 21:06
  • 3
    To put it another way, there are no tuning parameters because it knows better than you. Commented Jun 16, 2015 at 21:07
  • 1
    I wouldn't say that it ALWAYS knows better than you. Tuning would have been useful when the processing is IO-bound. Consider something like map(StockUtil::getPrice()) that goes to a web service to get the price for the 1000 ticker symbols in the list. Commented Aug 13, 2015 at 14:20
  • 1
    @LouisWasserman is this intention documented somewhere? Because for me, Streams feel like a (general purpose) language construct (it is java.*lang*.stream.Stream after all). In some cases I might not even know (or care) how my data is processed (in my concrete case I'm looking into caching right now - that will actually change the how is my data processed during runtime). Commented Sep 22, 2017 at 6:33