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
Android performance tuning. Memory.
Search
Sergii Kozyrev
October 23, 2016
Programming
74
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Android performance tuning. Memory.
Sergii Kozyrev
October 23, 2016
More Decks by Sergii Kozyrev
See All by Sergii Kozyrev
Practical Android Architecture
kozyrevsergey89
0
43
Shared Augmented Reality Worlds with ARCore
kozyrevsergey89
0
39
Android Performance Optimisation
kozyrevsergey89
0
41
Gradle Magic
kozyrevsergey89
0
49
Android battery performance optimisation
kozyrevsergey89
0
33
Android Wear Development
kozyrevsergey89
0
46
Other Decks in Programming
See All in Programming
パスワード再設定メールのURLについて知っておこう
uyuki234
0
160
phperだってパンチカードでコーディングしたい
o0h
PRO
0
340
ジョジョの世界をXRで再現する
mofurune
0
170
ChromeでローカルLLM
ryu1013
0
140
作れる、でも消せるか?──安全に「枯らして消す」機能削除術 / Drain, Then Delete
chobishiba
2
740
Unity6 URPによる海底をテーマにしたVJシステムの解説 | Unity Shader 完全に理解した 勉強会
gam0022
0
370
Domain-Driven Transformation
hschwentner
2
2.3k
コーディング自動化の次へ。人の介入をゼロにするファクトリーとサポートAIによる実践
timakin
5
3.8k
Atomic Design, Enforced: Scaling Mobile Design Systems (next.app devCon / droidCon Berlin 2026)
steliosf
PRO
0
170
iOS 27でニュースアプリはどう変わる!? 〜日経電子版の新機能対応と、開発事例から〜
lynnswap
7
13k
The Rails Doctrine Decade
koic
2
590
APNsからLive Activityを開始する話
yumnumm
0
170
Featured
See All Featured
GraphQLの誤解/rethinking-graphql
sonatard
75
12k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
1.9k
Balancing Empowerment & Direction
lara
6
1.3k
A Tale of Four Properties
chriscoyier
163
24k
Hiding What from Whom? A Critical Review of the History of Programming languages for Music
tomoyanonymous
3
1.4k
We Have a Design System, Now What?
morganepeng
55
8.4k
Exploring anti-patterns in Rails
aemeredith
4
540
Design in an AI World
tapps
1
350
Mozcon NYC 2025: Stop Losing SEO Traffic
samtorres
1
580
コードの90%をAIが書く世界で何が待っているのか / What awaits us in a world where 90% of the code is written by AI
rkaga
63
46k
Odyssey Design
rkendrick25
PRO
2
870
brightonSEO & MeasureFest 2025 - Winning Strategies for Black Friday CRO & PPC - Christian Goodrich
cargoodrich
3
870
Transcript
ANDROID PERFORMANCE TUNING MEMORY SERGII KOZYREV Senior SE 22.06.2016
Memory
Garbage Collector is such a cool feature
There is always taxes - “performance is not free”? :)
Understanding memory •GC •Find objects that can’t be accessed •Reclaim
the resources •Questions: •Heap vs Stack memory? •What GC collects? •How leaks happens?
Concerns
Memory Leaks •It’s not only about OutOfMemoryError •It reduces available
memory and causes GC run more frequent - which is bad
Different VMs – different Logs •Dalvik (every GC) •ART (if
the GC pause exceeds than 5ms or the GC duration exceeds 100ms) Concurrent VS Alloc
DEMO Memory Monitor
Memory Leaks •Simple - “handler case”, or every circular referenced
objects •Complex - holding a handle to the ClassLoader objects, load in onCreate and don’t check if classes already loaded (no class unload procedure)
Memory Leaks •Static Activities, Views, Context aware stuff •Inner Classes
•Anonymous Classes •Handlers •Threads and TimerTask •Sensor Manager
DEMO HeapViewver
Move allocations out of inner loops :)
DEMO Allocation Tracker
Thank You!
Links: https://github.com/kozyrevsergey89/PerformanceLab https://github.com/square/leakcanary https://www.udacity.com/course/android-performance--ud825