~/talk

1 Byte Instead of 32: The Anatomy of ScatterMap

TalkinRussianat Mobius 2026 Spring · 2026-05-12..05-13· [android]
links:none on file
slides:none on file

Explains why Java's HashMap is suboptimal on Android (memory use, cache locality, GC pressure, autoboxing) and traces the evolution from ArrayMap to androidx.collection's ScatterMap. Describes ScatterMap’s Swiss Table design—open addressing with grouped metadata, split hashing, and JVM SIMD emulation—and presents internal structure, benchmarks, and usage examples for Android/Java/Kotlin developers.

AI-written summary · about

  1. 0:00Introduction
  2. 1:03HashMap history and motivation
  3. 2:26Nanosecond optimizations memory
  4. 3:28HashMap structure pointer chasing
  5. 4:53HashMap node memory overhead
  6. 6:41ArrayMap SparseArray limits
  7. 8:26Open addressing probing
  8. 10:54Triangular numbers tombstones
  9. 14:05Metadata compression ScatterMap
  10. 17:15Long as metadata vector
  11. 18:39ScatterMap get operation
  12. 20:22Bitmask group extraction
  13. 21:27Detecting empty slots
  14. 23:35Group assembly from longs
  15. 27:48Match function h2 hash
  16. 31:42ScatterMap insert resize
  17. 34:06ScatterMap performance
  18. 36:58When to use ScatterMap
  19. 38:21Benchmark results
  20. 41:06Q&A
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.