📚Jetpack Compose Performance Book

The Jetpack Compose Performance book

Your tactical map to the performance-critical areas of the modern Android UI stack.

Written for engineers who are tired of anecdotal advice and demand data, measurements, and proven strategies.
5.01000+ people interested200+ pagesLifetime updates
Book

Sponsored by

Stream – Main Sponsor

Stream.io, Scalable APIs for Chat, Audio, Video, Feeds, and Moderation

Table of contents

The book covers the following topics among many others.

1. Introduction to Compose Performance

  1. What is performance in Compose?
  2. Why performance matters
  3. Common performance issues
  4. Performance metrics
  5. Performance optimization goals
  6. Performance vs maintainability
  7. Performance mindset

2. Understanding Compose's Runtime Architecture

  1. Compose runtime overview
  2. Composition tree
  3. Slot table
  4. Recomposition process
  5. State management
  6. Effect system
  7. Performance implications

3. Measuring and Monitoring Performance

  1. Performance metrics
  2. Frame timing
  3. Jank detection
  4. Memory profiling
  5. CPU profiling
  6. Performance monitoring
  7. Performance reporting

4. State Management and Stability

  1. State stability
  2. @Stable annotation
  3. @Immutable annotation
  4. State hoisting
  5. State holders
  6. State restoration
  7. State optimization

5. Recomposition Optimization

  1. Recomposition scope
  2. Skip optimization
  3. Restart optimization
  4. Positional memoization
  5. Remember and derivedStateOf
  6. Recomposition debugging
  7. Performance patterns

6. Strong Skipping Mode

  1. What is strong skipping?
  2. How it works
  3. Enabling strong skipping
  4. Performance benefits
  5. Best practices
  6. Common pitfalls
  7. Migration guide

7. Layout and Drawing Performance

  1. Layout performance
  2. Drawing performance
  3. Layout optimization
  4. Drawing optimization
  5. Custom layouts
  6. Custom drawing
  7. Performance patterns

8. Lists and Collections

  1. LazyColumn/LazyRow
  2. LazyGrid
  3. Item key optimization
  4. Item stability
  5. Prefetching
  6. Placeholder optimization
  7. Performance patterns

9. Modifier.Node and Custom Modifiers

  1. Modifier.Node architecture
  2. Custom modifiers
  3. Modifier chaining
  4. Performance optimization
  5. Best practices
  6. Common pitfalls
  7. Advanced patterns

10. Baseline Profiles

  1. What are baseline profiles?
  2. Creating baseline profiles
  3. Using baseline profiles
  4. Performance benefits
  5. Best practices
  6. Common pitfalls
  7. Advanced usage

11. Performance Tools and Debugging

  1. Android Studio tools
  2. Layout Inspector
  3. CPU Profiler
  4. Memory Profiler
  5. Network Profiler
  6. Debugging techniques
  7. Performance monitoring

12. Advanced Performance Techniques

  1. Advanced state patterns
  2. Advanced composition patterns
  3. Advanced rendering patterns
  4. Advanced memory patterns
  5. Advanced optimization patterns
  6. Advanced debugging patterns
  7. Advanced monitoring patterns

13. Real-world Performance Patterns

  1. Common patterns
  2. Anti-patterns
  3. Case studies
  4. Performance optimization
  5. Performance monitoring
  6. Performance reporting
  7. Performance best practices

14. Future of Compose Performance

  1. Upcoming features
  2. Performance roadmap
  3. Future optimizations
  4. Future tools
  5. Future patterns
  6. Future best practices
  7. Future monitoring

Sponsored by

Stream – Main Sponsor

Stream.io, Scalable APIs for Chat, Audio, Video, Feeds, and Moderation

Take the online course and join the exclusive community

Attendee avatarAttendee avatarAttendee avatarAttendee avatarAttendee avatarAttendee avatar

Master Jetpack Compose and learn how to work efficiently with it. Enjoy the perfect mix of theory and exercises with the best trainer. Join a community of 500+ devs.

★★★★★
Jorge Castillo
Created and delivered by Jorge Castillo, Google Developer Expert for Android and Kotlin
Trusted by top companies