SlideShare a Scribd company logo
Parallel collections i
      Scala 2.9
      Alf Kristian Støyle
      Know IT Objectnet
http://www.nassaulibrary.org/ncla/nclacler_files/LILC7.JPG
http://schoolchat.wordpress.com/2008/04/22/keeping-pollution-levels-low/
Embarrassingly parallel
Fork/Join
Work stealing
Double-ended queue - deque
Double-ended queue - deque
Double-ended queue - deque
val persons: List[Person] = ...
val (kids, adults) = persons.partition(_.age < 18)
val paralellList = List(1, 2, 3).par
val paralellList = List(1, 2, 3).par
val sequentialList = paralellList.seq
•
   parallel arrays - scala.collection.parallel.mutable.ParArray

 •
   parallel ranges - scala.collection.parallel.immutable.ParRange

 •
   parallel hash maps - scala.collection.parallel.mutable.ParHashMap

 •
   parallel hash sets - scala.collection.parallel.mutable.ParHashSet

 •
   parallel hash tries - scala.collection.parallel.immutable.{ParHashMap, ParHashSet}

 •
   parallel vectors - scala.collection.parallel.immutable.ParVector




                                http://www.scala-lang.org/node/8976
REPL demo
(https://gist.github.com/919224)
Q &A

More Related Content

PPTX
C# Non generics collection
PDF
Introduction to parallel and distributed computation with spark
PDF
Yann Nicolas - Elag 2018 : From XML to MARC
PPTX
From XML to MARC. RDF behind the scenes.
ODP
Java - Collections
PDF
Scala - La transformation numérique (Français)
PPTX
Insulinotherapie en 2013
PDF
Scala : programmation fonctionnelle
C# Non generics collection
Introduction to parallel and distributed computation with spark
Yann Nicolas - Elag 2018 : From XML to MARC
From XML to MARC. RDF behind the scenes.
Java - Collections
Scala - La transformation numérique (Français)
Insulinotherapie en 2013
Scala : programmation fonctionnelle

Viewers also liked (7)

PPT
Présentation Eurocloud France - Cloud computing en France - Cédric Mora
PPT
Lecture 2
PPTX
Presentation on flynn’s classification
PDF
Introduction à scala
PDF
Présentation (brève) de scala
PPTX
Tour d’horizon de scala
PDF
HUB REPORT - L'indispensable à savoir sur la Data & le CRM
Présentation Eurocloud France - Cloud computing en France - Cédric Mora
Lecture 2
Presentation on flynn’s classification
Introduction à scala
Présentation (brève) de scala
Tour d’horizon de scala
HUB REPORT - L'indispensable à savoir sur la Data & le CRM
Ad

Similar to Paralell collections in Scala (20)

PDF
Scala parallel-collections
PDF
Scala parallel-collections
PPTX
Scalable Applications with Scala
PPTX
Scala intro for Java devs 20150324
PDF
Scala In The Wild
PPTX
Taxonomy of Scala
PDF
Getting Started With Scala
PDF
Scala for the doubters. Максим Клыга
PDF
Scala for Java Developers (Silicon Valley Code Camp 13)
PDF
Introduction to Scala | Big Data Hadoop Spark Tutorial | CloudxLab
PDF
Scala for Java Programmers
PDF
A bit about Scala
PDF
Stepping Up : A Brief Intro to Scala
PDF
The Scala Programming Language
PPTX
Scala training workshop 02
KEY
Cassandra and Rails at LA NoSQL Meetup
PDF
Java 8: more readable and flexible code
PDF
(How) can we benefit from adopting scala?
PDF
Live coding scala 'the java of the future'
PDF
楽々Scalaプログラミング
Scala parallel-collections
Scala parallel-collections
Scalable Applications with Scala
Scala intro for Java devs 20150324
Scala In The Wild
Taxonomy of Scala
Getting Started With Scala
Scala for the doubters. Максим Клыга
Scala for Java Developers (Silicon Valley Code Camp 13)
Introduction to Scala | Big Data Hadoop Spark Tutorial | CloudxLab
Scala for Java Programmers
A bit about Scala
Stepping Up : A Brief Intro to Scala
The Scala Programming Language
Scala training workshop 02
Cassandra and Rails at LA NoSQL Meetup
Java 8: more readable and flexible code
(How) can we benefit from adopting scala?
Live coding scala 'the java of the future'
楽々Scalaプログラミング
Ad

More from Alf Kristian Støyle (8)

KEY
Learning Lisp
KEY
Clojure workshop
KEY
Into Clojure
KEY
Clojure - JVM språket som er "multi-core ready"
PDF
Dependency injection in Scala
ODP
ODP
Scala introduction
ZIP
The account problem in Java and Clojure
Learning Lisp
Clojure workshop
Into Clojure
Clojure - JVM språket som er "multi-core ready"
Dependency injection in Scala
Scala introduction
The account problem in Java and Clojure

Paralell collections in Scala