~/talk

How much memory do your objects really use?

Talkat Android Makers 2020 · 2020-04-20..04-21· [android]
slides:none on file

Explains JVM object headers, alignment and reference sizes, and uses a Java instrumentation agent plus reflection to walk object graphs and get exact sizes. Shows concrete numbers: "hello" string ≈72 bytes, a 4-string POJO ≈256 bytes versus LinkedHashMap ≈744 bytes, ArrayMap ≈2× object. Demonstrates a tool that measures deep object graph sizes and applies it to a real case—10,000 items × ~3KB → ~30MB—prompting a decision to stop eager in‑memory DB loading. code and GitHub links provided

AI-written summary · about

  1. 0:00Introduction
  2. 1:18Out of Memory
  3. 5:27Data Types
  4. 9:06Instrumentation Tools
  5. 9:40Project Overview
  6. 10:53RigInSize
  7. 17:53Comparing Data Structures
  8. 22:35Sample Objects
  9. 24:09Inspecting Data Structures
  10. 26:36Questions
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.