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
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Dmitry Petrashko
March 05, 2015
Programming
23
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
Other Decks in Programming
See All in Programming
Agentic Software Factoryに、すごく賢いIF文を。 / super smart IF statement into the Agentic Software Factory.
rkaga
8
2.2k
AWSに止められる覚悟してますか?
morizo_1984
2
530
Web Framework Benchmark Battle 2026, Any%
a_matsuda
2
2k
外から家のPCの電源入れたい!をPHPで解決する
kawashimo0
1
130
[ハンズオン]AIへの指示だけで「五目並べ」を作ってみよう
satoshi256kbyte
1
380
dotNET_vulnclicker_intro.pdf
deka_morita
0
140
Unity6 URPによる海底をテーマにしたVJシステムの解説 | Unity Shader 完全に理解した 勉強会
gam0022
0
370
見えないものを探る要求要件定義に必要な基本的思考 / invisible-requirement-thinking
minodriven
15
8.5k
JIS keyboard support in Omarchy
lef237
0
110
Starting & Sustaining Code-Based E2E Testing for Non-Coding QA Teams( #jasstniigata )
teyamagu
PRO
1
1k
Workers Cache を知る
syumai
0
360
C#の現在地 進化の歴史と、AI時代の.NET Everywhere
neuecc
5
5.2k
Featured
See All Featured
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
162
16k
How to Ace a Technical Interview
jacobian
280
24k
How Fast Is Fast Enough? [PerfNow 2025]
tammyeverts
3
940
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
52
6.1k
Evolving SEO for Evolving Search Engines
ryanjones
0
330
The Invisible Side of Design
smashingmag
301
52k
Bridging the Design Gap: How Collaborative Modelling removes blockers to flow between stakeholders and teams @FastFlow conf
baasie
0
730
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
21
1.7k
Learning to Love Humans: Emotional Interface Design
aarron
275
41k
職位にかかわらず全員がリーダーシップを発揮するチーム作り / Building a team where everyone can demonstrate leadership regardless of position
madoxten
69
67k
Imperfection Machines: The Place of Print at Facebook
scottboms
270
14k
Optimizing for Happiness
mojombo
378
71k
Transcript
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.