O'Reilly logo

Pragmatic Scala by Venkat Subramaniam

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 12Lazy Evaluations and Parallel Collections

Responsiveness—that’s one thing that can make or break just about any application. Other factors like business value, ease of use, availability, cost, and resilience, are also important. But responsiveness is at the top—we humans take about 250 milliseconds to cognitively perceive any action; after five seconds any delay begins to feel like eternity. Any effort to lower the response time will directly impact our ability to make customers happy and, in turn, earn their loyalty.

You can make applications responsive in one of two ways. You could run computations faster by using multiple threads—that is, instead of running tasks one after another, run them in parallel. Alternatively, instead of ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required