Lecture

Scala Parallel Collections: Basics and Best Practices

Description

This lecture introduces Scala parallel collections, including the parallel counterparts of sequential traits and how to write parallelism-agnostic code using generic collection traits. It covers converting sequential collections to parallel, parallelizable collections like ParArray and ParVector, and computing set intersection. The lecture also discusses side-effecting operations, avoiding mutations without synchronization, and concurrent modifications during traversals. It concludes with the exception to these rules using TrieMap for efficient state grabbing in parallel operations.

About this result
This page is automatically generated and may contain information that is not correct, complete, up-to-date, or relevant to your search query. The same applies to every other page on this website. Please make sure to verify the information with EPFL's official sources.