Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Android performance tuning. Memory.
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Sergii Kozyrev
October 23, 2016
Programming
0
56
Android performance tuning. Memory.
Sergii Kozyrev
October 23, 2016
Tweet
Share
More Decks by Sergii Kozyrev
See All by Sergii Kozyrev
Practical Android Architecture
kozyrevsergey89
0
24
Shared Augmented Reality Worlds with ARCore
kozyrevsergey89
0
29
Android Performance Optimisation
kozyrevsergey89
0
24
Gradle Magic
kozyrevsergey89
0
35
Android battery performance optimisation
kozyrevsergey89
0
26
Android Wear Development
kozyrevsergey89
0
35
Other Decks in Programming
See All in Programming
OSSとなったswift-buildで Xcodeのビルドを差し替えられるため 自分でXcodeを直せる時代になっている ダイアモンド問題編
yimajo
3
630
CSC307 Lecture 10
javiergs
PRO
1
670
Premier Disciplin for Micro Frontends Multi Version/ Framework Scenarios @OOP 2026, Munic
manfredsteyer
PRO
0
120
AIに仕事を丸投げしたら、本当に楽になれるのか
dip_tech
PRO
0
110
登壇資料を作る時に意識していること #登壇資料_findy
konifar
4
1.8k
ぼくの開発環境2026
yuzneri
0
260
AI時代のキャリアプラン「技術の引力」からの脱出と「問い」へのいざない / tech-gravity
minodriven
22
7.5k
React 19でつくる「気持ちいいUI」- 楽観的UIのすすめ
himorishige
11
7.5k
LLM Observabilityによる 対話型音声AIアプリケーションの安定運用
gekko0114
2
440
組織で育むオブザーバビリティ
ryota_hnk
0
180
CSC307 Lecture 07
javiergs
PRO
1
560
Head of Engineeringが現場で回した生産性向上施策 2025→2026
gessy0129
PRO
0
120
Featured
See All Featured
Darren the Foodie - Storyboard
khoart
PRO
2
2.4k
The Invisible Side of Design
smashingmag
302
51k
So, you think you're a good person
axbom
PRO
2
1.9k
JAMstack: Web Apps at Ludicrous Speed - All Things Open 2022
reverentgeek
1
360
brightonSEO & MeasureFest 2025 - Christian Goodrich - Winning strategies for Black Friday CRO & PPC
cargoodrich
3
110
Reflections from 52 weeks, 52 projects
jeffersonlam
356
21k
The agentic SEO stack - context over prompts
schlessera
0
650
Why You Should Never Use an ORM
jnunemaker
PRO
61
9.7k
Google's AI Overviews - The New Search
badams
0
910
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
21
1.4k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
12
1k
A designer walks into a library…
pauljervisheath
210
24k
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