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
Heap, off you go
Search
Nikita Salnikov-Tarnovski
May 23, 2015
Programming
1.3k
0
Share
Heap, off you go
Nikita Salnikov-Tarnovski
May 23, 2015
More Decks by Nikita Salnikov-Tarnovski
See All by Nikita Salnikov-Tarnovski
Project clarity - random rant from an old engineer
nikem
0
98
How Plumbr uses Kafka
nikem
0
110
Introduction to Druid
nikem
0
880
Deceived by monitoring
nikem
0
78
10% Happier
nikem
0
79
Where is my memory
nikem
0
480
First steps in GC tuning
nikem
0
1.6k
I bet you have a memory leak
nikem
1
170
Plumbing Memory Leaks
nikem
1
150
Other Decks in Programming
See All in Programming
My daily life on Ruby
a_matsuda
3
410
AlarmKitで明後日起きれるアラームアプリを作る
trickart
0
140
Spec-Driven Development with AI Agents (Workshop, May 2026)
antonarhipov
3
370
Stage 3 Decorators でできること / できないこと / TSKaigi 2026
susisu
0
110
Cloudflare で始める Data Platform
ta93abe
0
180
ソフトウェア設計の結合バランス #phperkaigi
kajitack
0
510
Making the RBS Parser Faster
soutaro
0
720
AI時代だからこそ「Bloc」を採用する価値があるのかもしれない
takuroabe
0
190
Agentic AI & UI: Arcitecture, HITL, Emerging Standards
manfredsteyer
PRO
0
110
SkillsをS3 Filesに置く時のあれこれ
watany
3
1.6k
運転動画を検索可能にする〜Cosmos-Embed1とDatabricks Vector Searchで〜/cosmos-embed1-databricks-vector-search
studio_graph
3
960
Structured Concurrency, Scoped Values and Joiners in the JDK 25 26 27
josepaumard
1
150
Featured
See All Featured
Agile that works and the tools we love
rasmusluckow
331
21k
Lightning talk: Run Django tests with GitHub Actions
sabderemane
0
180
Technical Leadership for Architectural Decision Making
baasie
3
370
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
287
14k
Money Talks: Using Revenue to Get Sh*t Done
nikkihalliwell
0
220
Odyssey Design
rkendrick25
PRO
2
620
How People are Using Generative and Agentic AI to Supercharge Their Products, Projects, Services and Value Streams Today
helenjbeal
1
180
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.7k
Navigating Weather and Climate Data
rabernat
0
190
Abbi's Birthday
coloredviolet
2
7.6k
The Cult of Friendly URLs
andyhume
79
6.9k
Heart Work Chapter 1 - Part 1
lfama
PRO
7
35k
Transcript
Heap, off you go
Who am I • Nikita Salnikov-Tarnovski • Founder and Master
Developer from • We solve performance problems • @iNikem, http://github.com/iNikem/offheap
JVM and memory • One of the reasons Java became
so popular back in 90s is automatic memory management • No malloc and free • You just create objects and let JVM handle all the rest
Garbage goes to Heap
Garbage Collector
Garbage Collector • A subsystem of JVM • He handles
garbage • In a “transparent” way • Or so they thought
When much is too much • If you produce too
much garbage, cleaning it is expensive • More objects - more time to clean
Solution? • Litter where no one sees :) • Off
the heap • Which means in native memory
Why is this good? • You can throw things around
all the way you want • And no once will say a word
But… • You still have to clean things yourself eventually
• You have to break your objects into tiny flat pieces
Flat object public class Trade { public int ticket; public
int amount; public int price; public boolean buy; }
Stop talking! Show me the code! • Demo time
Solving performance problems is hard. We don’t think it needs
to be.