Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Efficient Lock-Free Work-stealing Iterators for...
Search
Dmitry Petrashko
March 05, 2015
Programming
28
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Efficient Lock-Free Work-stealing Iterators for Data-Parallel Collections
Dmitry Petrashko
March 05, 2015
Transcript
25 slides
EFFICIENT LOCK-FREE WORK-STEALING ITERATORS FOR DATA- PARALLEL COLLECTIONS Aleksandar Prokopec,
Dmitry Petrashko and Martin Odersky
implemented in ScalaBlitz scala-blitz.github.io DATA-PARALLEL hugeCollectionOfInts.sum() has low work per
element
PERFECT WORLD
REGULAR WORKLOAD
None
REAL LIFE: IRREGULARITIES
IRREGULAR WORKLOAD collection.map(x => fun(x))
IRREGULAR WORKLOAD
None
WORKSTEALING SCHEDULER Threads steal work from each other. No cooperation
from target thread needed, lock free. A. Prokopec and M. Odersky. Near optimal work-stealing tree scheduler for highly irregular data- parallel workloads. LCPC 2013
EVEN MORE REAL LIFE: OVERHEADS
IRREGULAR WORKLOAD
None
None
None
TYPES OF OVERHEAD Data access overhead, Scheduling overhead, Invocation overhead.
Won't be covered here.
DATA ACCESS OVERHEAD Data consumer abstracts over data source: Inefficiencies:
iteration scheme(eg iterate over tree as if over indexed collection), redundant data copying, boxing (Jvm, Python, Ruby, JavaScript).
HOW SEVERE IS IT? unboxed boxed a + b box(unbox(a)
+ unbox(a)) ~13x slowdown
SCHEDULING OVERHEAD Lets say we have a HashMap: Most HashMaps
by nature create irregular workload. Efficient scheduling has to be data-structure aware.
WORK-STEALING ITERATORS Define: how to iterate; how to steal work.
Transparent for user. Easy to implement for developer.
BENCHMARKS For cycle:
BENCHMARKS Irregular workload:
See paper :-). MORE DETAILS? Or ask questions.
Eliminating abstraction penalties is necessary to realistically assess the scheduling
quality. High abstraction penalties could entirely mask scheduling penalties. TAKEAWAY MESSAGE
THANK YOU.
Other Decks in Programming
See All in Programming
特急いなほ as a Workflow / 20261107jaws-festa-2026-akita-lt
kasacchiful
PRO
0
110
RaspberryPi 5で軽くはじめるk3sとtailscaleを用いたホームサーバー構築 (1)
nasum
0
450
Claude Codeのおかげでやりたいことがやれるようになったんだよォー!
sms_tech
0
190
Math.sumPreciseから学ぶ、ECMAScript仕様の数値の種類
syumai
0
1.3k
[DroidKnights 2026] Workflow AX: From Auto-Documented Policies to E2E Testing
raeminkang
0
620
仕様駆動開発入門 (何を作るかを先に決めて渡す) | 目指せ Kiro マスター 05
inariku
PRO
3
250
baseline으로 마이그레이션, 리팩토링 안전하게 맡기기
fornewid
1
1.1k
AWS CDKを理解するために公式の定義を深掘って解説してみる / Understanding AWS CDK by Digging into Its Official Definition
akihisaikeda
3
360
The Cost of the DOM
ypresto
4
1.9k
テスト駆動開発から学ぶ 達人プログラマーの型 / TechRAMEN 2026 Conference
a_okui
0
3.2k
Going Full Circle with Virtual Graphs and Relational Databases
michaelsimons
1
120
Getting Started with Vibe Coding
miccheng
0
250
Featured
See All Featured
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
56
3.5k
Skip the Path - Find Your Career Trail
mkilby
1
310
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
28
3.8k
Accessibility Awareness
sabderemane
1
320
GitHub's CSS Performance
jonrohan
1033
470k
Bash Introduction
62gerente
615
220k
Organizational Design Perspectives: An Ontology of Organizational Design Elements
kimpetersen
PRO
1
890
HTML-Aware ERB: The Path to Reactive Rendering @ RubyCon 2026, Rimini, Italy
marcoroth
6
970
Self-Hosted WebAssembly Runtime for Runtime-Neutral Checkpoint/Restore in Edge–Cloud Continuum
chikuwait
0
970
Exploring the relationship between traditional SERPs and Gen AI search
raygrieselhuber
PRO
4
4.5k
Utilizing Notion as your number one productivity tool
mfonobong
4
710
Why You Should Never Use an ORM
jnunemaker
PRO
61
10k