Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Lambda Performance Optimization in Java

Java via YouTube

Overview

Explore lambda performance in Java with Sergey Kuksenko in this 44-minute conference talk. Dive into various aspects of lambda expressions, including linkage, non-capture and capture scenarios, invocation, inlining, and scalar replacement. Learn about benchmarking techniques, analyze assembly code, and understand the main contributors to lambda performance. Compare lazy and eager evaluation strategies, and gain insights into potential pitfalls of microbenchmarks. Discover how lambda chains and anonymous chains affect performance, and examine the impact of lambda's slow warm-up on time-to-performance metrics.

Syllabus

Intro
Lambda: performance
Lambda: SUT
Linkage: How?
Linkage: What?
Linkage: lambda chain
Linkage: anonymous chain
Linkage: benchmark
Linkage: results (cold)
Linkage: Main contributors (lambda)
Non-capture lambda: benchmarks
Capture: results
Capture: exploring asm
Capture: benchmark
Capture: chain results
Capture: beware of microbenchmarks
Capture: LF's inline tree
Capture: lambda slow warmup
Capture: time-to-performance
Invocation: performance
Inline: benchmark
Scalar replacement: benchmark
Scalar replacement: results
Scalar replacement: asm
Lazy vs Eager: benchmark
Lazy vs Eager: results

Taught by

Java

Reviews

Start your review of Lambda Performance Optimization in Java

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.