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

YouTube

Efficient Kotlin: Optimizing Performance and Resource Usage - GeeCON 2022

GeeCON Conference via YouTube

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Discover efficient Kotlin coding techniques in this GeeCON 2022 conference talk by Marcin Moskała. Learn how to optimize performance-critical parts of your code, potentially saving energy, reducing server costs, and improving scalability. Explore strategies such as using object declarations, caching, heavy object lifting, and inline modifiers for functions with functional type parameters. Understand the costs of inline modifiers and how to indicate units of measure. Delve into collection processing, comparing Iterable and Sequence, and learn when to prefer Sequence for big collections with multiple processing steps. Gain insights on associating elements to maps, using groupingBy instead of groupBy, and leveraging Arrays with primitives for performance-critical processing. Master the art of creating efficient Kotlin code that can make a significant impact on your application's performance and resource utilization.

Syllabus

Intro
Using object declaration
Using cache
Heavy object lifting
Item 48: Use inline modifier for functions with parameters of functional types
Costs of inline modifier
Indicate unit of measure
Consider using inline value classes
Eliminate obsolete object references
Collection processing
Iterable vs Sequence
The advantages of sequences
Prefer Sequence for big collections with more than one processing step
Consider associating elements to a map
Consider using groupingBy instead of groupBy
Consider Arrays with primitives for performance-critical processing
Consider using mutable collections

Taught by

GeeCON Conference

Reviews

Start your review of Efficient Kotlin: Optimizing Performance and Resource Usage - GeeCON 2022

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.