YoVDO

Efficient Kotlin: Optimizing Performance and Resource Usage - GeeCON 2022

Offered By: GeeCON Conference via YouTube

Tags

Kotlin Courses Memory Management Courses

Course Description

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

Related Courses

Heterogeneous Parallel Programming
University of Illinois at Urbana-Champaign via Coursera
Advanced Operating Systems
Georgia Institute of Technology via Udacity
計算機程式設計 (Computer Programming)
National Taiwan University via Coursera
Introduction to Operating Systems
Georgia Institute of Technology via Udacity
Android Performance
Google via Udacity