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
0
1.2k
Heap, off you go
Nikita Salnikov-Tarnovski
May 23, 2015
Tweet
Share
More Decks by Nikita Salnikov-Tarnovski
See All by Nikita Salnikov-Tarnovski
Project clarity - random rant from an old engineer
nikem
0
93
How Plumbr uses Kafka
nikem
0
100
Introduction to Druid
nikem
0
860
Deceived by monitoring
nikem
0
69
10% Happier
nikem
0
72
Where is my memory
nikem
0
450
First steps in GC tuning
nikem
0
1.6k
I bet you have a memory leak
nikem
1
170
Plumbing Memory Leaks
nikem
1
140
Other Decks in Programming
See All in Programming
プロポーザル駆動学習 / Proposal-Driven Learning
mackey0225
2
1.3k
Android 16 × Jetpack Composeで縦書きテキストエディタを作ろう / Vertical Text Editor with Compose on Android 16
cc4966
2
250
「待たせ上手」なスケルトンスクリーン、 そのUXの裏側
teamlab
PRO
0
550
GitHubとGitLabとAWS CodePipelineでCI/CDを組み比べてみた
satoshi256kbyte
4
240
HTMLの品質ってなんだっけ? “HTMLクライテリア”の設計と実践
unachang113
4
2.9k
AI時代のUIはどこへ行く?
yusukebe
18
9k
チームのテスト力を鍛える
goyoki
3
430
AIと私たちの学習の変化を考える - Claude Codeの学習モードを例に
azukiazusa1
10
4.3k
Ruby×iOSアプリ開発 ~共に歩んだエコシステムの物語~
temoki
0
320
Ruby Parser progress report 2025
yui_knk
1
450
為你自己學 Python - 冷知識篇
eddie
1
350
MCPとデザインシステムに立脚したデザインと実装の融合
yukukotani
4
1.4k
Featured
See All Featured
The Art of Programming - Codeland 2020
erikaheidi
56
13k
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
8
530
The MySQL Ecosystem @ GitHub 2015
samlambert
251
13k
KATA
mclloyd
32
14k
How to Think Like a Performance Engineer
csswizardry
26
1.9k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
33
2.4k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
248
1.3M
A Tale of Four Properties
chriscoyier
160
23k
Bootstrapping a Software Product
garrettdimon
PRO
307
110k
Embracing the Ebb and Flow
colly
87
4.8k
Site-Speed That Sticks
csswizardry
10
820
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
36
2.5k
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.